Closed Serpentarius13 closed 2 months ago
Hey,
Do you try this? https://github.com/atinux/nuxt-auth-utils#configuration
Hey,
Do you try this? https://github.com/atinux/nuxt-auth-utils#configuration
Yes. But the type only allows sameSite property on cookie
You need to use the session
config:
export default defineNuxtConfig({
modules: ['nuxt-auth-utils'],
runtimeConfig: {
session: {
maxAge: 60 * 60 * 24 * 7 // 1 week
}
}
})
It will forward it to the cookie.
But why does the type not work? This is RuntimeConfig dts @atinux
Because it's generated on the fly
https://github.com/user-attachments/assets/df43f3b8-96e5-4ed6-98cd-7f11ba917069
And the defaults are the following
so the generated runtimeConfig
only have keys name
, password
and sameSite
.
Because it's generated on the fly
Screen.Recording.2024-08-29.at.14.42.06.mov And the defaults are the following
so the generated
runtimeConfig
only have keysname
,password
andsameSite
.
Wouldn't it be sane to generate the type for maxAge? What's the problem here?
There is no such option as of now in config settings, only sameSite under cookie