mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-12 08:19:51 +01:00
SSO: Also save openid_id_token longer
This commit is contained in:
parent
71b0a5cc81
commit
82048cd4f3
@ -451,7 +451,7 @@ class Auth {
|
||||
// instead it containts a JWT with userinfo like user email, username, etc.
|
||||
// the client will get to know it anyway in the logout url according to the oauth2 spec
|
||||
// so it is safe to send it to the client, but we use strict settings
|
||||
res.cookie('openid_id_token', user.openid_id_token, { maxAge: 1000 * 60 * 60 * 24 * 365, httpOnly: true, secure: true, sameSite: 'Strict' })
|
||||
res.cookie('openid_id_token', user.openid_id_token, { maxAge: 1000 * 60 * 60 * 24 * 365 * 10, httpOnly: true, secure: true, sameSite: 'Strict' })
|
||||
next()
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user