signOut doesn't remove session from local storage
Hey, I am experimenting with supabase. I like it so far, but I have encountered problems with signing out.
When I use
I inspected
I need to to it manually by myself with
Had anybody seen similar problem like this?
Here's code I have used:
When I use
supabase.auth.signOut() request is sent, however token inside local storage is not removed. Due to that supabase.auth.user() returns valid user object and not null. I inspected
signOut method and it is supposed to remove item in local storage with session, however this is not done.I need to to it manually by myself with
localStorage.removeItem(STORAGE_KEY).Had anybody seen similar problem like this?
Here's code I have used: