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

Function UserDetails

example/withSuspense/Auth.tsx:29–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27};
28
29const UserDetails = () => {
30 const auth = useAuth();
31 const {data: user} = useUser();
32
33 return (
34 <>
35 <CardSection title="Displayname">{(user as User).displayName}</CardSection>
36 <CardSection title="Providers">
37 <ul>
38 {(user as User).providerData?.map(profile => (
39 <li key={profile?.providerId}>{profile?.providerId}</li>
40 ))}
41 </ul>
42 </CardSection>
43 <CardSection title="Sign Out">
44 <WideButton label="Sign Out" onClick={() => signOut(auth)} />
45 </CardSection>
46 </>
47 );
48};
49
50const SignInForm = () => {
51 const auth = useAuth();

Callers

nothing calls this directly

Calls 3

useAuthFunction · 0.85
useUserFunction · 0.85
signOutFunction · 0.70

Tested by

no test coverage detected