mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-28 16:57:52 +02:00
15 lines
330 B
TypeScript
15 lines
330 B
TypeScript
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);
|
|
}
|