React Native - a0.session.user_cancelled

I’m using react-native-auth0 to authenticate users and trying to debug an issue that comes up frequently. The user successfully authenticates with Auth0, which I can see in the user history. But instead of succeeding on the client side, I get an error. I was finally able to reproduce this with an emulator. The error is consistently a0.session.user_cancelled.

Here’s my code:
await auth0
.webAuth
.authorize({ scope: ‘openid profile email offline_access’ })
.then(credentials => {
// Successfully authenticated
console.log("Auth0 credentials: ", credentials);
// Store the accessToken
authHelper.saveAuthKeys(credentials);
})
.catch(error => {
console.log("Auth0 login error: ", error);
});

And here’s what I see on the console:
Auth0 login error: {“error”: “a0.session.user_cancelled”, “error_description”: “User cancelled the Auth”}

I’m using react-native-auth0 v2.6.0.

I see the subject is “old”, but I have the same problem.
Does anybody have a suggestion?
Thks

Hey there!

I think the best way of handling that would be to raise a GitHub issue in the repo so we can discuss it directly with the repo maintainers.

Was this ever resolved, I am running into the same issue but only on android.

Any updates? Facing the same thing.