Using cookies vs localstorage
Sorry if this has been asked before. I wasn't able to find any information. I noticed that the session is sometimes stored in localStorage and sometimes in cookies. Is using the storageKey parameter in createClient the correct way to enforce localStorage usage? What is the correct way to enforce cookie usage, and set cookie name?
Another related issue is that I am not seeing an option to clear the cookie / localStorage on signout. If the current session is valid the user can signout without an issue but if the token or session has expired signOut doesn't work leaving the user with a stale session he can't exit.
Any ideas?
Another related issue is that I am not seeing an option to clear the cookie / localStorage on signout. If the current session is valid the user can signout without an issue but if the token or session has expired signOut doesn't work leaving the user with a stale session he can't exit.
Any ideas?