Update jwt verify for sockets to ignore expiration

This commit is contained in:
advplyr committed 2026-09-26 17:52:08 -05:00
1 parent dfce15a74c
commit 72a1c656f9
1 file changed
+2 -1
+2 -1
View File
@@ -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
}