# React Native - a0.session.user\_cancelled

**URL:** <https://community.auth0.com/t/react-native-a0-session-user-cancelled/49649>\
**Category:** Get Help\
**Tags:** react-native-auth0, react-native\
**Created:** [September 12, 2020, 6:42pm UTC](https://community.auth0.com/t/react-native-a0-session-user-cancelled/49649 "2020-09-12T18:42:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rebecca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rebecca/32/12773_2.png) [@rebecca](https://community.auth0.com/u/rebecca)\
**Post date:** [September 12, 2020, 6:42pm UTC](https://community.auth0.com/t/react-native-a0-session-user-cancelled/49649/1 "2020-09-12T18:42:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![emmanuel.chagnas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/emmanuel.chagnas/32/12752_2.png) [@emmanuel.chagnas](https://community.auth0.com/u/emmanuel.chagnas)\
**Post date:** [September 30, 2021, 8:51am UTC](https://community.auth0.com/t/react-native-a0-session-user-cancelled/49649/2 "2021-09-30T08:51:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 6, 2021, 12:10pm UTC](https://community.auth0.com/t/react-native-a0-session-user-cancelled/49649/3 "2021-10-06T12:10:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Flotemer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/flotemer/32/45589_2.png) [@Flotemer](https://community.auth0.com/u/Flotemer)\
**Post date:** [July 25, 2023, 9:58pm UTC](https://community.auth0.com/t/react-native-a0-session-user-cancelled/49649/4 "2023-07-25T21:58:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![stuttskl](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stuttskl/32/59893_2.png) [@stuttskl](https://community.auth0.com/u/stuttskl)\
**Post date:** [July 10, 2024, 9:24pm UTC](https://community.auth0.com/t/react-native-a0-session-user-cancelled/49649/5 "2024-07-10T21:24:25Z")

</div>

Any updates? Facing the same thing.
