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

Issue on iOS when redirecting back to the redirect_uri with the ?code parameter attached #969

Open
mmaier opened this issue May 8, 2024 · 2 comments

Comments

@mmaier
Copy link

mmaier commented May 8, 2024

Issue

There is a weird behaviour when the redirect_uri attached code parameter is not of the format "schema://path?code=123" but "schema://path/?code=123" (notice the appended "/" between "path" and "?code=".
While on Android everything works fine, on iOS nothing happens anymore - the screen seem to get stuck. Even no error is raised. Took me quite a while to figure this out.


Environment

  • Your Identity Provider: Spotify
  • Platform that you're experiencing the issue on: iOS
  • Your react-native Version: 0.73.6
  • Your react-native-app-auth Version: 7.1.3
  • Are you using Expo? No
@carbonrobot
Copy link
Contributor

Azure has this same issue, we are happy to accept a PR for a doc update!

@mmaier
Copy link
Author

mmaier commented May 26, 2024

it's only working when setting iosCustomBrowser: "safari" - but that gets rejected by Apple due to bad user experience. The only workaround is to add the / to the oauth redirect url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants