question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Release Channel & AuthSession Redirect Error %2F

See original GitHub issue

Environment

Environment: OS: macOS Sierra 10.12.6 Node: 8.9.1 Yarn: 1.3.2 npm: 5.6.0 Watchman: 4.7.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: 2.2 AI-145.3360264

Packages: (wanted => installed) expo: ^25.0.0 => 25.0.0 react: 16.2.0 => 16.2.0 react-native: https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz => 0.52.0

Diagnostics report: If the core team needs this information, I can provide it, but there are many strings contained within that are business sensitive.

Using Expo client, loading my app. Fails on Android 7. Works on iOS 11 and in iPhone iOS simulator.

Steps to Reproduce

  1. Setup project to publish with release channel defined.
  2. Create an authentication flow with the AuthSession.startAsync, and AuthSession.getRedirectUrl as the redirectUrl for the OAuth flow.
  3. In the expo client, launch a release channel build of app, trigger authentication flow.
  4. Complete authentication flow.

Expected Behavior

Expected behavior is that it launches the web browser, shows our oauth flow, when done, successfully redirects back to the release channel specific Expo client app.

Actual Behavior

Authentication flow completes, but fails to redirect back to Expo client release channel app, and instead returns an error such as the following:

Could not load exp://exp.host/@username/app?release-channel=dev%2F

Reproducible Demo

I can make one if there is activity here requesting a demo.

This has been documented by another fellow on the forums. I wanted to make this issue for better tracking and visibility.

Thank you for the consideration.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Devtron3737commented, Feb 15, 2018

…currently figuring out how to use a custom scheme to deep link back to the standalone app, havent successfully done so yet unfortunately. But will be sure to post when it seems to be working!

2reactions
brentvatnecommented, Feb 20, 2018

landed a PR so this will be resolved in SDK 26

Read more comments on GitHub >

github_iconTop Results From Across the Web

AuthSession
When authentication is successful, your authentication provider will redirect to that Expo Auth URL, and then the Expo Auth service will redirect back...
Read more >
Expo Auth Session for Google Authentication on React Native ...
Hi everyone!SKIP INTRO and go straight to code: 2 :28Today I am going to talk about Expo AuthSession with the Google provider and...
Read more >
auth package - JavaScript API reference - Firebase - Google
Returns a UserCredential from the redirect-based sign-in flow. ... of persistence on the Auth instance for the currently saved Auth session and applies...
Read more >
Expo AuthSession new window not redirecting on Web
You need to call WebBrowser.maybeCompleteAuthSession(); . There is a warning in the AuthSession Expo Docs about this case:
Read more >
Using OAuth 2.0 for Web Server Applications
Obtaining OAuth 2.0 access tokens · Your application identifies the permissions it needs. · Your application redirects the user to Google along ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found