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

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 Auth0 React Native SDK Quickstarts: Login. 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 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.