Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a new instance of Auth0 to use different login environment #474

Open
5 tasks done
tmorone-rezi opened this issue Sep 18, 2024 · 0 comments
Open
5 tasks done
Labels
feature request A feature has been asked for or suggested by the community

Comments

@tmorone-rezi
Copy link

Checklist

  • I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

Our system has different Auth0 tenants for different environments: QA, Stage, Production
We would like to re-initialize our auth0 client when the user selects a different environment.
We currently do this, but discovered that Auth0 retains some settings from the first environment.

Example:

  • start app
  • select QA environment
  • logout
  • select Production environment
  • login

This all works until the access token expires. The call to renew the token goes to the QA environment instead of Production.
There must be a singleton or something inside auth0 that does not get cleaned up when we re-initialize the environment.

Describe the ideal solution

Auth0 client should be able to fully dispose and allow the app to create a new instance.

Alternatives and current workarounds

No response

Additional context

No response

@tmorone-rezi tmorone-rezi added the feature request A feature has been asked for or suggested by the community label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature has been asked for or suggested by the community
Projects
None yet
Development

No branches or pull requests

1 participant