Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Jun 6, 2023
1 parent a71f8f4 commit 8ef184f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ When working with multiple organizations, there might be a situation where you w
Important to realize is that the authentication state in the SDK is build around the organization, so in order to switch organizations, you need to logout and login again. However, it's enough to log out from the SDK and not from Auth0. Doing that ensures that, when calling login again, the user might not be prompted for their credentials depending on whether or not they have an active session with Auth0.

```ts
switchOrganization(newOrganization: string) {
async function switchOrganization(newOrganization: string) {
await logout({ openUrl: false });
await loginWithRedirect({
authorizationParams: {
Expand Down

0 comments on commit 8ef184f

Please sign in to comment.