How manage token on Prisma, connect database that has permanent connection

prisma

#1

(Note that my app does not have User Type, authentication)

Every once in a while, while connecting to the server on my Prisma API at us1.prisma.sh, the token expires, so I must keep changing it on my middleware.

Is there a way to continue connecting to the Prisma api without needing to occasionally change my expired token?


#2

I am now using this guide:

But when I deploy it to the .now.sh url, my client is getting 400 bad request.


#3
  1. You can generate a service token with a custom expiry date. So you could set it to 100 years if you wanted to, check the reference documentation for more information about this. Note that you can indirectly revoke access to service tokens by deploying a new secret to your service.

  2. Please open a new discussion if you have further questions about the deployment with now.