sidebase / nuxt-auth

🔐 Nuxt user authentication and sessions via authjs (next-auth), local and refresh providers. nuxt-auth wraps NextAuth.js to offer the reliability & convenience of a 12k star library to the nuxt 3 ecosystem with a native developer experience (DX)
https://sidebase.io/nuxt-auth/
MIT License
1.13k stars 134 forks source link

Determine expires of cookie token #777

Open agracia-foticos opened 5 days ago

agracia-foticos commented 5 days 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 days 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