Spaces:
Configuration error
Configuration error
Download src/lib/client.ts from SreejithSHR/umami: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/lib/client.ts
- Command line
-
hf download hf://spaces/SreejithSHR/umami/src/lib/client.ts
-
curl -L -o client.ts https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/lib/client.ts
330 Bytes
| import { getItem, setItem, removeItem } from 'next-basics'; | |
| 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); | |
| } | |