sidebase / nuxt-session

Nuxt session middleware to get a persistent session per app user, e.g., to store data across multiple requests. The nuxt session module provides the useSession() composable out of the box and sets up API endpoints to interact with your session to make working with sessions feel like a breeze.
https://sidebase.io/nuxt-session/
MIT License
189 stars 19 forks source link

Documentation to override Configuration #42

Closed nengine closed 1 year ago

nengine commented 1 year ago

Describe the feature

It would be helpful to have documentation of specific steps to override default configuration of nuxt-session. I wanted to change default session expiration of 10 minutes to 1 hours for example.

Additional information

No response

BracketJohn commented 1 year ago

Hey @nengine 👋

Thanks for the issue - have you checked out the readme config section? There's a config key exactly for what you are asking (i think)!

Does tha resolve your request? (:

BracketJohn commented 1 year ago

Here's the exact link to the configuration: https://github.com/sidebase/nuxt-session#configuration

nengine commented 1 year ago

Thanks a lot @BracketJohn . Very much appreciated.

BracketJohn commented 1 year ago

perfect - closing the issue now as answered!