const TokenKey = 'Admin-Token';
const TokenKey2 = 'Admin-Token2';
const Enabled = 'Enabled';

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

const tokenStorage2 = useStorage<null | string>(TokenKey2, null);

const safeEnabled = useStorage<null | boolean>(Enabled, null);

export const getEnabled = () => safeEnabled.value;

export const setEnabled = (enabled: any) => (safeEnabled.value = enabled);

export const removeEnabled = () => (safeEnabled.value = null);


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

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

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


export const getTempToken = () => tokenStorage2.value;

export const setTempToken = (access_token: string) => (tokenStorage2.value = access_token);

export const removeTempToken = () => (tokenStorage2.value = null);
