I’m having trouble with Auth0 idTokens. I’m trying...
# prisma-whats-new
g
I’m having trouble with Auth0 idTokens. I’m trying to implement a manual login using username and password. I am able to retrieve the idToken from Auth0, but when I try to sign in the user to Graphcool, it tells me the token is invalid
I’m using the same scope that I was using with the Lock UI, but its not working for the custom auth
When I decode the token, the payload looks fine:
Copy code
{
  “email”: “george@ordercircle.comf23f2fvb”,
  “email_verified”: false,
  “iss”: “https://allovancemethod.auth0.com/“,
  “sub”: “auth0|590c8402cafd291dd09b062c”,
  “aud”: “EGtJ5sVSq4VzvbTRAtUpRsdXtl7CJFug”,
  “exp”: 1494028455,
  “iat”: 1493992455
}
l
@gmuresan Are you using auth0-js for it?
g
yes
l
Try using auth0-js v7 instead of v8, you are using v8 right?
g
scope: openid email user_metadata name picture
yes I’m using v8
l
It is because v8 uses rs256 sig algorithm, GC does not support it yet.
n
that's correct., thanks for chiming in @loelsonk. There's an open feature request for this as well: https://github.com/graphcool/feature-requests/issues/145
g
yep it works now
👍 1
with v7