Hey guys, is there an admin token feature planned ...
# prisma-whats-new
y
Hey guys, is there an admin token feature planned for server side calls ?
n
@yorunohikage Cheers! That's already available in your project settings under the
Authentication
tab 🙂
y
Yup, I know but when I used it, it told me that I needed more permissions to remove data 😞
n
Are you sure that you included it correctly in the
Authorization
header like this:
Bearer <token>
?
Could you share some code?
y
Yes, it worked when I created relations
n
What's the exact error message you received?
and the according query/mutation
y
I'll try again and I'll come back to you 🙂
Thanks
n
👍
y
GraphQL Error: Insufficient permissions for this mutation
When I try to delete a user
n
What client are you using?
y
Lokka
n
And how are you setting it up 🙂
Maybe you can send me a PM
y
Is the token from the
Authentication
tab supposed to be an admin token or just the same as an authenticated user?
n
It's not reflected by a user in your data, the token has admin access.
y
okay, I send you a DM then 🙂