MCPcopy Create free account
hub / github.com/Bitbox-Connect/Bitbox / useAuth

Function useAuth

client/src/contexts/authContext/index.jsx:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const AuthContext = React.createContext();
7
8export function useAuth() {
9 return useContext(AuthContext);
10}
11
12export function AuthProvider({ children }) {
13 const [currentUser, setCurrentUser] = useState(null);

Callers 5

SignupFunction · 0.90
AdminFunction · 0.90
NavbarFunction · 0.90
LoginFunction · 0.90
LoginOTPFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected