mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-27 03:31:46 +00:00
User password changes invalidate sessions
This commit is contained in:
parent
a6cde926ee
commit
c900676be7
5 changed files with 112 additions and 12 deletions
|
|
@ -81,7 +81,7 @@ class Auth {
|
|||
* @param {import('./models/User')} user
|
||||
* @param {Request} req
|
||||
* @param {Response} res
|
||||
* @returns {Promise<string>} accessToken only if user is current user and refresh token is valid
|
||||
* @returns {Promise<{ accessToken:string, refreshToken:string }|null>} new tokens for the current session if kept alive
|
||||
*/
|
||||
async invalidateJwtSessionsForUser(user, req, res) {
|
||||
return this.tokenManager.invalidateJwtSessionsForUser(user, req, res)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue