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

Function UserDetails

example/withoutSuspense/Auth.tsx:30–48  ·  view source on GitHub ↗
({ user })

Source from the content-addressed store, hash-verified

28};
29
30const UserDetails = ({ user }) => {
31 const auth = useAuth();
32
33 return (
34 <>
35 <CardSection title="Displayname">{user.displayName}</CardSection>
36 <CardSection title="Providers">
37 <ul>
38 {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 2

useAuthFunction · 0.85
signOutFunction · 0.70

Tested by

no test coverage detected