Hi, I read the official doc, and I saw that I can setting up a tokenExpiration field, but I need that the system never expires.
There's exist some way to avoid JWT token expiration?
In theory you would always want token expiration. You can then use the
refresh token
endpoint to renew whenever it expires. But keeping a token indefinitely is not secure. Would API Keys maybe be a more suitable solution in your case?
https://payloadcms.com/docs/authentication/config#api-keysStar
Discord
online
Get dedicated engineering support directly from the Payload team.