sidebase / nuxt-auth

Authentication built for Nuxt 3! Easily add authentication via OAuth providers, credentials or Email Magic URLs!
https://auth.sidebase.io
MIT License
1.31k stars 164 forks source link

Determine expires of cookie token #777

Open agracia-foticos opened 4 months ago

agracia-foticos commented 4 months ago

Describe the feature

The expires of the cookie are 1 month, we want to modify it to 2 months image

How would you implement this?

The expires of the cookie are 1 month, we want to modify it to 2 months image

Additional information

Provider

zoey-kaiser commented 4 months ago

Hi @agracia-foticos 👋

You should be able to set this inside the NuxtAuthHandler inside the JWT options. Let me know if this is not the case and I will look into it futhur 😊

https://next-auth.js.org/configuration/options#jwt