# React-native-auth0 - unexpected token error while logging in

**URL:** <https://community.auth0.com/t/react-native-auth0-unexpected-token-error-while-logging-in/8557>\
**Category:** Get Help\
**Tags:** react-native-auth0, token, unexpected-token\
**Created:** [October 24, 2017, 7:43am UTC](https://community.auth0.com/t/react-native-auth0-unexpected-token-error-while-logging-in/8557 "2017-10-24T07:43:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iswaryas](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@iswaryas](https://community.auth0.com/u/iswaryas)\
**Post date:** [October 24, 2017, 7:43am UTC](https://community.auth0.com/t/react-native-auth0-unexpected-token-error-while-logging-in/8557/1 "2017-10-24T07:43:58Z")

</div>

I followed the steps in [https://www.npmjs.com/package/react-native-auth0](https://www.npmjs.com/package/react-native-auth0) but while logging in I get an unexpected token error. Also, I forked the sample project in  
[GitHub - auth0-samples/auth0-react-native-sample: Auth0 Integration Samples for React Native · GitHub](https://github.com/auth0-samples/auth0-react-native-sample) and changed the clientId and domain to point to my project url, it still throws the unexpected token error.

More information:  
I find the following error in the Auth0 log  
“error”: {  
“message”: “Unexpected token A”,  
“oauthError”: “access\_denied”,  
“type”: “oauth-authorization”  
}  
The message differs each time I try to log in.

---

<div class="post-metadata">

**Author:** ![alessandro.annini](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alessandro.annini/32/3894_2.png) [@alessandro.annini](https://community.auth0.com/u/alessandro.annini)\
**Post date:** [January 10, 2018, 7:19pm UTC](https://community.auth0.com/t/react-native-auth0-unexpected-token-error-while-logging-in/8557/2 "2018-01-10T19:19:00Z")

</div>

I am exeperiencing the same issue… have you found anything about it?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/react-native-auth0-unexpected-token-error-while-logging-in/8557/3 "2018-03-02T05:57:06Z")

</div>


