Spaces:
Configuration error
Configuration error
File size: 330 Bytes
339aa1f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import { getItem, setItem, removeItem } from 'next-basics';
import { AUTH_TOKEN } from './constants';
export function getClientAuthToken() {
return getItem(AUTH_TOKEN);
}
export function setClientAuthToken(token: string) {
setItem(AUTH_TOKEN, token);
}
export function removeClientAuthToken() {
removeItem(AUTH_TOKEN);
}
|