#How can set no expiration for Auth?
1 messages · Page 1 of 1 (latest)
Would an api-key work better for you? Cookies have a hard limit of 400 days mandated by the browser. You could enable api-keys on your user collection and then use an api-key authenticate with infinitely. Here’s some more info about them: https://payloadcms.com/docs/authentication/config#api-keys
There's not exist someway to use jwt?
Yes but using JWT passing by Authorization, keeps expiring
There's exist some way to avoid JWT expiration?
Not really, the intention of JWTs and this kind of "temporary token authorisation" is the fact that they expire, what you're really looking for is the API key linked above, that is also going to have the behaviour you want of not expiring.
Any other solution to get JWTs to behave like an API key would just be hacky and not recommended