diff options
| author | Fuwn <[email protected]> | 2026-01-24 13:09:50 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-01-24 13:09:50 +0000 |
| commit | 396acf3bbbe00a192cb0ea0a9ccf91b1d8d2850b (patch) | |
| tree | b9df4ca6a70db45cfffbae6fdd7252e20fb8e93c /src/lib/client.ts | |
| download | umami-396acf3bbbe00a192cb0ea0a9ccf91b1d8d2850b.tar.xz umami-396acf3bbbe00a192cb0ea0a9ccf91b1d8d2850b.zip | |
Created from https://vercel.com/new
Diffstat (limited to 'src/lib/client.ts')
| -rw-r--r-- | src/lib/client.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/client.ts b/src/lib/client.ts new file mode 100644 index 0000000..e176215 --- /dev/null +++ b/src/lib/client.ts @@ -0,0 +1,14 @@ +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); +} |