MCPcopy Create free account
hub / github.com/dailydotdev/apps / useAuthData

Function useAuthData

packages/shared/src/contexts/AuthDataContext.tsx:34–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32};
33
34export const useAuthData = (): AuthDataContextData => {
35 const context = useContext(AuthDataContext);
36
37 if (!context) {
38 throw new Error('useAuthData must be used within an AuthDataProvider');
39 }
40
41 return context;
42};

Callers 4

EmailCodeVerificationFunction · 0.90
RegistrationFormFunction · 0.90
AuthOptionsInnerFunction · 0.90
ForgotPasswordFormFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected