ak4zh
03/11/2022, 3:04 PMauth.signIn()
supabase stores the session in the browser local storage. Now does the client check that localStorage every-time a request is being made and add the user in the api calls.
What happens when the session in localStorage has expired and my app tries to make api call?
Will supabase just keep working and stop adding the user info in api calls and does not remove the session stored in local storage?
Or it checks during every api call if session is still valid and if valid it adds user else deleted the session from local storage so my apps knows thatbuser is logged out and I redirect them to login page.
In my app I am simply accessing the localStorage to know if user is logged in, when I call auth.signOut()
supabase removed the localstorage so login logout seems to work already without over complicating the setup.Needle
03/11/2022, 3:04 PM/title
command!
Done using the thread?
Click the button below to archive it.