mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-17 22:31:59 +01:00
Update jwt verify for sockets to ignore expiration
This commit is contained in:
1 parent
dfce15a74c
commit
72a1c656f9
1 file changed
+2
-1
@@ -74,7 +74,8 @@ class TokenManager {
|
||||
*/
|
||||
static validateAccessToken(token) {
|
||||
try {
|
||||
return jwt.verify(token, TokenManager.TokenSecret)
|
||||
// Expiration is handled by the caller so expired API keys can be deactivated
|
||||
return jwt.verify(token, TokenManager.TokenSecret, { ignoreExpiration: true })
|
||||
} catch (err) {
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user