hey all, This is my first time using GraphCool and...
# prisma-whats-new
k
hey all, This is my first time using GraphCool and I'm loving it, but I simply can't get it to work with Auth0 When I call the createUser mutation I get an error saying my token is invalid, even though the auth0 authentication is working and I'm getting a valid token
h
Could you show you Auth0 auth settings?
a
@kaumac a bit late, are you sending the idToken?
h
I’m sending token!
a
the long string, yes?
h
yeap
whats your auth config for Auth0?
btw token <> id_token imho
n
@kaumac is your token HS256 encoded?
k
@nilan I'm not manually encoding the token in any way, I'm sending exactly the token that I'm getting back from the auth0 sdk
do I need to do this manually?
n
please paste the token to jwt.io and you'll see how it is encoded
either
HS256
or
RS256
k
@nilan this is what I'm getting from jwt.io:
Copy code
{
  "typ": "JWT",
  "alg": "RS256",
  "kid": "Mjc0QjNGRjQwRDZFMUY0MERDRUZEMjczNzZFODhCMDA5MEU1RDk3OQ"
}
n
there it is šŸ™‚
RS256
k
oh, I didn't see that page
n
šŸ˜„ that's why I showed it to you!
k
nice, thanks! I'll definitely have a look
but for now, should I change it to HS256 then?
d
Yes, in Auth0, set the the JWT signature algorithm to HS256
Clients > YourClient > Settings > Show Advanced Setttings