You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a private component (App) as a child of AuthCheck and Login as a fallback
Login using the form, App component with the user email should be rendered
reload the page
press sign out
Expected behavior
All children of AuthCheck shouldn't be rendered if there is no user logged in
Actual behavior
App component render fails with Cannot read property 'email' of null, because of useUser returning null. Happens only if an application is loaded with an active session.
adam-coogan, jhuleatt, mateja176, luciddr34m3r, izorg and 5 more