SohoHouse / nuxt-oauth

Simple OAuth2 integration for your Nuxt app
MIT License
122 stars 27 forks source link

add option duration #71

Open hamishhossack opened 3 years ago

hamishhossack commented 3 years ago

Add option to allow session duration manipulation.

Default to 24 hours: 24 60 60 * 1000

usage;


oauth: {
    duration: 1000 * 60 * 60 * 24 * 365 * 2, // 2 year session duration
}