mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
14 lines
332 B
TypeScript
14 lines
332 B
TypeScript
import { getItem, removeItem, setItem } from '@/lib/storage';
|
|
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);
|
|
}
|