Also what’s the best way to debug authentication? ...
# prisma-whats-new
l
Also what’s the best way to debug authentication? My Auth0 idToken can be used to create a user, but when I send a request with the header
Authorization: Bearer $ID_TOKEN
I get an "Insufficient Permissions” error.
n
@lpil one question, where did you obtain the token from?
l
n
ok cool! So I think using the Playground from the Console is the best approach here
in the top right you can select the specific user that you run the queries/mutations as
l
Yup, those all work
Setting the same headers
Maybe something wrong with the token? I’ll regen
n
alright, could you send me the token in PM?
l
Oh, I’ve broken something with Auth0 now. I’ll get back to you when it stops throwing errors at me 😛
Thanks 🙂
n
Hehe alright 👍
l
The token has stopped working for Auth0 as well, must be a problem over there. Thanks 🙂
Heh. I changed nothing and it works now. Maybe I hit an Auth0 bug
n
could it be that the token expired?
l
My tokens are supposed to be valid for 1000 years 😕
n
huh then I'm out of ideas 😉
l
Me too. It works now though 😛
👍 1