How to change the `redirectURI` at runtime?
TPLCarloTaleon opened this issue · 2 comments
TPLCarloTaleon commented
Checklist
- The issue can be reproduced in the react-native-auth0 sample app (or N/A).
- 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.
Description
I have two environments that I want to try with Auth0 and interchange between them at runtime. So that PROD and DEV flags are runtime values.
- If PROD, point to au.example.com
- If DEV, point to jp.example.com
But whenever I call auth0.webAuth.authorize(...)
using the two different credentials.
The first time it works, but when I switch to the other one, it still uses the same redirectURI but with some different credentials.
The modal pop-up still shows the same domain that I used the first time.
I'm not sure if it's caused by the iOS's webview? Or is it React Native? Or is it Auth0?
Reproduction
No repro. I'll try to make a minimal example in a while.
Additional context
No response
react-native-auth0 version
3.2.1
React Native version
0.74.1
Expo version
No response
Platform
iOS
Platform version(s)
17.5