HeaderAuthenticationUserContainer
Used to display AuthenticationUser on header.
You are not authenticated.
Props:
children
Description: React elements to display. Type: ReactNode. Required.
style
Description: HeaderAuthenticationUserContainer style. Type: CSS Properties.
className
Description: HeaderAuthenticationUserContainer className. Type: String.
Code
<HeaderAuthenticationUserContainerComponent style={{ backgroundColor: theme.colors.primary, padding: 12 }} > <AuthenticationManager signInButtonTitle='Sign in' authenticationFeedbackText={ session?.data ? `Hello ${session?.data?.user.name}!` : 'You are not authenticated.'} showsUserPhoto signIn={() => signIn('github')} signOut={signOut} signOutButtonTitle='Sign out' /> </HeaderAuthenticationUserContainerComponent >