Switch organization for logged in user
I am using sveltkit, after a user logs by selecting their organization, is it possible to switch the logged in organization without logging out? I asked @Ask Inkeep and it didn't have an answer
6 Replies
Hmmm.. it seems I’m not enabled to reply in this channel. Please contact a team member for help.
From what i know it's not
Hey @chrisogden. See this doc. https://docs.kinde.com/authenticate/manage-authentication/navigate-between-organizations/?r=search#_top
Kinde docs
Build a switch to navigate between organizations
Our developer tools provide everything you need to get started with Kinde.
And this one . You can maintain authenticated sessions across front-end and web apps using refresh tokens.
https://docs.kinde.com/authenticate/manage-authentication/user-auth-applications/?r=search#_top
@Claire_Kinde Thank you! While that example isn't an exact match for sveltekit I was able to use it to accomplish the goal in my switch function I used
``goto(\
/api/auth/login?org_code=${orgCode}`)Fantastic Chris! 🙌