How to signout serverside? #2707
Unanswered
madeinspace
asked this question in
Help
Replies: 1 comment
-
you will have to delete the cookie, yes, and you cannot do this totally from the backend. you might get some ideas on how to do this here #836 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running into a usecase where I have a multitenant application and I need to automatically signout if the tenant change in the URL
say "myapp.com/tenant1" where tenant1 is already signed in, if he changes tenant1 to tenant2 in the URL I want to be able to signout tenant1 server side. Is that possible or do I need to remove the session cookie myself?
At the moment I'm doing it on the client like so but I'm getting a flash of non secured page before signout.
// if (process.browser && session && session.user.name != tenantAlias) signOut();
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions