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

How to change the redirectURI at runtime? #927

Open
6 tasks done
TPLCarloTaleon opened this issue Jun 26, 2024 · 0 comments
Open
6 tasks done

How to change the redirectURI at runtime? #927

TPLCarloTaleon opened this issue Jun 26, 2024 · 0 comments
Labels
bug This points to a verified bug in the code

Comments

@TPLCarloTaleon
Copy link

Checklist

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.

  1. If PROD, point to au.example.com
  2. 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

@TPLCarloTaleon TPLCarloTaleon added the bug This points to a verified bug in the code label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

1 participant