mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
14 lines
322 B
TypeScript
14 lines
322 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) {
|
|
setItem(AUTH_TOKEN, token);
|
|
}
|
|
|
|
export function removeClientAuthToken() {
|
|
removeItem(AUTH_TOKEN);
|
|
}
|