Download src/context/AuthContextProvider.jsx from Cripple-Lee/Auto-Train-Agents-Client: direct link, hf CLI and curl.
- Browser
- Download file 313 Bytes
-
https://huggingface.co/spaces/Cripple-Lee/Auto-Train-Agents-Client/resolve/main/src/context/AuthContextProvider.jsx
- Command line
-
hf download hf://spaces/Cripple-Lee/Auto-Train-Agents-Client/src/context/AuthContextProvider.jsx
-
curl -L -o AuthContextProvider.jsx https://huggingface.co/spaces/Cripple-Lee/Auto-Train-Agents-Client/resolve/main/src/context/AuthContextProvider.jsx
313 Bytes
| import { useState } from 'react' | |
| import { AuthContext } from './AuthContext.js' | |
| export default function AuthProvider({ children }) { | |
| const [hfToken, setHfToken] = useState('') | |
| const value = { | |
| hfToken, | |
| setHfToken, | |
| } | |
| return <AuthContext.Provider value={value}>{children}</AuthContext.Provider> | |
| } | |