silas
08/03/2021, 4:26 PMsupabase.auth.user() and supabase.auth.session() but often the page loads before the auth values are fetched and updated. How are you guys handling this?silas
08/03/2021, 4:54 PMShaneTheKing
08/03/2021, 5:00 PMShaneTheKing
08/03/2021, 5:01 PMundefined. If it's null then they aren't logged in, if it's a truthy value then they've logged inShaneTheKing
08/03/2021, 5:01 PM_supaService.user$ anywhere (this is a service provided in root) and check the values to know what state the user is inShaneTheKing
08/03/2021, 5:02 PMShaneTheKing
08/03/2021, 5:04 PMonAuthStateChange so you can destroy it when needed so you don't have memory leaksfrubalu
08/03/2021, 5:54 PMfrubalu
08/03/2021, 5:55 PMfrubalu
08/03/2021, 5:56 PMfrubalu
08/03/2021, 5:56 PMsilas
08/04/2021, 5:43 AMundefined before it's set. I thought it was null and that it stayed null when the user was logged out. I appreciate the example too—I'll give it a shot when I get the chance.silas
08/04/2021, 5:44 AMsilas
08/04/2021, 5:47 AMShaneTheKing
08/04/2021, 8:26 AM