mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
14 lines
304 B
TypeScript
14 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);
|
|
}
|