mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-31 07:09:55 +02:00
SSO: Also save openid_id_token longer
This commit is contained in:
parent
71b0a5cc81
commit
82048cd4f3
1 changed files with 1 additions and 1 deletions
|
@ -451,7 +451,7 @@ class Auth {
|
||||||
// instead it containts a JWT with userinfo like user email, username, etc.
|
// 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
|
// 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
|
// 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()
|
next()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue