AuthSession not redirecting after successful Auth0 login

#1

I have been trying to get Auth0 working with my React Native app using Expo. I have read many docs, SO threads, the the example apps, but I keep getting stuck at the same point. The “return to app” link does not work. The href in the link looks like this:

exp://ax-vus.gochinj.ams-field-manual.exp.direct:80/–/expo-auth-session#access_token=token_redacted&scope=openid&expires_in=7200&token_type=Bearer

I can post my code, but it is essential the auth0_example that everyone says works, but with my ClientId and domain.

#2

@gochinj maybe its because the character before your parameters should be ? instead of #?

from the linking docs:
https://docs.expo.io/versions/latest/guides/linking.html
https://docs.expo.io/versions/latest/sdk/auth-session#authentication-provider-redirects-upon-successful-authentication-the

#3

Thanks for pointing that out, but I don’t generate that URL Expo does. My app working now.

The solution was to make sure that my app was using sdkVersion 24.0.0 as in the example app. My app was originally created with 28.0.0. That was the version that generated URL above. but could not get things working downgraded to 24.0.0 and it started working correctly.

#4

I have the same issue on Ios SDK 28.

Google Login and Facebook Login just Stop working.

#5

This is 100% confirmed, I went back to 28 and it fails to redirect.

#6

@gochinj - is this on iOS or Android?

#7

At the moment I am working with iOS. Not using the simulator, but a real iPhone. I aspire to getting this working on Android.

1 Like
#8

My Android wors fine, ios Still not working

closed #9

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.