I’m using the embedded login with auth0-js.
I have a user who is a member of two different organisations.
The user goes to my login page, where they identify which organisation they want to log into. Next they input their email and password. Then the WebAuth.login method is called with the supplied credentials and organisation_id
. My backend receives the code
which it then uses to obtain the access_token
and the refresh_token
, and uses the access_token
to retrieve the user’s info.
Now I want to let the user easily switch to another organisation, without having to input their credentials again.
Is there any way I can exchange the access_token
and/or refresh_token
for a new pair of tokens for the same user, but in a different organisation?