Is your feature request related to a problem? Please describe.
I would like to add the expiration time on the token when we generating it or avoid its generation. If I generate one with prisma token, it's valid one week, and I would like to generate a token that doesn't expires. If I modify this generated token with, for example, JWT Debugger and remove or change the exp property, prisma always respons me with an error:
"errors": [
{
"message": "Your token is invalid. It might have expired or you might be using a token from a different project.",
"code": 3015,
"requestId": "local:cjruewhxv001l0710waj2b8pb"
}
]
Describe the solution you'd like
I would like to a persistent token, because my prisma server will not be public, only it will be requested through another proxy server but I want a token to do it that it doesn't expires to protect it a little.
Ok you can surely generate one with https://jwt.io
Here are the steps:
Even though this is closed, wanted to leave a note here for the generations that come after me:
Don't use whitespace in your secret: there seems to be inconsistencies when Prisma generates/matches a token to the secret if you do. I spend a few hours trying to figure out why only Prisma-generated token would work, but turns out everything was good to go once I changed to a new secret without whitespace.
@pantharshit00 thanks a lot this worked for me.
Most helpful comment
Ok you can surely generate one with https://jwt.io
Here are the steps: