MCPcopy Index your code
hub / github.com/FirebaseExtended/reactfire / Auth

Function Auth

example/withoutSuspense/Auth.tsx:60–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58};
59
60export const Auth = () => {
61 const { status, data: signinResult } = useSigninCheck();
62
63 if (status === 'loading') {
64 return <LoadingSpinner />;
65 }
66
67 const { signedIn, user } = signinResult;
68
69 if (signedIn === true) {
70 return <UserDetails user={user} />;
71 } else {
72 return <SignInForm />;
73 }
74};

Callers

nothing calls this directly

Calls 1

useSigninCheckFunction · 0.85

Tested by

no test coverage detected