Download src/context/AuthContext.tsx from sifars/keepme: direct link, hf CLI and curl.
- Browser
- Download file 227 Bytes
-
https://huggingface.co/spaces/sifars/keepme/resolve/main/src/context/AuthContext.tsx
- Command line
-
hf download hf://spaces/sifars/keepme/src/context/AuthContext.tsx
-
curl -L -o AuthContext.tsx https://huggingface.co/spaces/sifars/keepme/resolve/main/src/context/AuthContext.tsx
227 Bytes
| import { createContext } from "react"; | |
| interface AuthContextType { | |
| isAuthenticated: boolean; | |
| login: (token: string) => void; | |
| logout: () => void; | |
| } | |
| export const AuthContext = createContext<AuthContextType | null>(null); | |