AuthSession causes app to keep crashing

#1

Problem:
After a user authenticates with AuthSession, they are prompted to open the redirect with my app twice. If a user selects the option on the right it causes the app to crash. I have attached an image of the “open with” prompt and the auth session code.

  let auth0_redirectUrl = AuthSession.getRedirectUrl();
  let authUrl = `https://${auth0_domain}/authorize` +
    toQueryString({
      client_id: auth0_clientId,
      response_type: 'token',
      scope: 'openid profile email',
      connection: 'facebook',
      redirect_uri: auth0_redirectUrl,
    });
  let result = await AuthSession.startAsync({authUrl: authUrl,}); 

#2

Hey @seanjoseph,

What SDK version are you using? Also, is this occurring on both ios and android?

Cheers,

Adam

#3

Hey Adam,

We haven’t tested this on iOS yet.

"sdkVersion": "30.0.0"
"platforms": ["android"]

Thanks,

Sean

#4

@adamjnav haven’t been able to find a solution for this yet. Any suggestions on how I should troubleshoot this? Would it be useful if I shared an APK with the issue?

#5

Yeah, that would be great! You can either email secure@expo.io or direct message me in the community slack @adamjnav

#6

I’ll send you a dm @adamjnav

1 Like
#7

@adamjnav I shot you a DM on slack, did you get it?

#8

My bad, Sean. I must’ve tapped on it and about it. Let me see what we can find out. I’ll DM you when I find out more.

1 Like
#9

Thanks Adam, let me know if you want me to send you anything else.

closed #10

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