All tokens generated by Prisma CLI are invalid

prisma

#1

I’m just getting started with Prisma, but I’ve been stuck trying to secure my deployed endpoint.

Workflow:
docker-compose up the docker services for DB and Prisma.

prisma deploy using the following prisma.yml:

endpoint: http://localhost:4466
datamodel: datamodel.prisma
secret: foo

Run prisma playground -> all queries return the following message: “Your token is invalid. It might have expired or you might be using a token from a different project.”

Same behaviour happens with curl using a token generated by the prisma token command or with prisma admin.

If I remove the secret and redeploy all queries work properly.

What am I missing?


#2

Solved: it was a bug, prisma version 1.37.8 has it fixed.