mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Auth: Store auth_method longer
Its not unrealistic that someone keeps being logged into the app for more than a year if not stored longer logout process might not work anymore
This commit is contained in:
parent
f12ac685e8
commit
d4ed6348ee
@ -221,8 +221,8 @@ class Auth {
|
|||||||
res.cookie('auth_cb', callback, { maxAge: TWO_MINUTES, httpOnly: true })
|
res.cookie('auth_cb', callback, { maxAge: TWO_MINUTES, httpOnly: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store the authentication method for a year
|
// Store the authentication method for long
|
||||||
res.cookie('auth_method', authMethod, { maxAge: 1000 * 60 * 60 * 24 * 365, httpOnly: true })
|
res.cookie('auth_method', authMethod, { maxAge: 1000 * 60 * 60 * 24 * 365 * 10, httpOnly: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user