mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
15 lines
304 B
TypeScript
15 lines
304 B
TypeScript
|
import { getItem, setItem, removeItem } from 'next-basics';
|
||
|
import { AUTH_TOKEN } from './constants';
|
||
|
|
||
|
export function getAuthToken() {
|
||
|
return getItem(AUTH_TOKEN);
|
||
|
}
|
||
|
|
||
|
export function setAuthToken(token) {
|
||
|
setItem(AUTH_TOKEN, token);
|
||
|
}
|
||
|
|
||
|
export function removeAuthToken() {
|
||
|
removeItem(AUTH_TOKEN);
|
||
|
}
|