Auth0 Home Blog Docs

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

id_token
react-native
idtoken
invalid_token

#1

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 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 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.


#2