# Invalid idToken when migrating from react-native-lock to react-native-auth0

**URL:** <https://community.auth0.com/t/invalid-idtoken-when-migrating-from-react-native-lock-to-react-native-auth0/7919>\
**Category:** Get Help\
**Tags:** invalid\_token, react-native, idtoken, id\_token\
**Created:** [August 21, 2017, 11:46pm UTC](https://community.auth0.com/t/invalid-idtoken-when-migrating-from-react-native-lock-to-react-native-auth0/7919 "2017-08-21T23:46:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thesoftwaresmith](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@thesoftwaresmith](https://community.auth0.com/u/thesoftwaresmith)\
**Post date:** [August 21, 2017, 11:46pm UTC](https://community.auth0.com/t/invalid-idtoken-when-migrating-from-react-native-lock-to-react-native-auth0/7919/1 "2017-08-21T23:46:42Z")

</div>

I was using native lock (react-native-lock) in my react-native app and idToken was working fine with graphcool to create new users.

Now because Lock is deprecated, I replaced it with (react-native-auth0) and started using [Add Login to Your React Native Application - Auth0 Docs](https://auth0.com/docs/quickstart/native/react-native). This is a hosted login page and the generated idToken is too large and when I pass it to Graphcool to createUser it says

“The provided idToken is invalid. Please see [ID Tokens - Auth0 Docs](https://auth0.com/docs/tokens/id_token) for how to obtain a valid idToken.”

I’ve read this idTokens page but still not sure what I’m missing here. Any help is appreciated This issue is blocking me.

---

<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:56am UTC](https://community.auth0.com/t/invalid-idtoken-when-migrating-from-react-native-lock-to-react-native-auth0/7919/2 "2018-03-02T05:56:02Z")

</div>


