const TokenKey = 'Admin-Token';

const ClientIdKey = 'client_id'

const tokenStorage = useStorage<null | string>(TokenKey, null);

const clientIdStorage = useStorage<null | string>(ClientIdKey, 'e5cd7e4891bf95d1d19206ce24a7b32e');
// const clientIdStorage = useStorage<null | string>(ClientIdKey, 'aaee710ecebb7d4251f8a7e7d10fad0d');

export const getToken = () => tokenStorage.value;

export const getClientId = () => clientIdStorage.value;

export const setToken = (access_token: string) => (tokenStorage.value = access_token);

export const setClientId = (client_id: string) => (clientIdStorage.value = client_id);

export const removeToken = () => (tokenStorage.value = null);
