fix(cacher): store a jwt with no exp claim without an expiration

This commit is contained in:
imSp4rky
2026-11-26 13:40:05 -07:00
parent d0e7a70f94
commit ed3b772793
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ class Cacher:
if expiration is None:
try:
expiration = jwt.decode(self.data, options={"verify_signature": False})["exp"]
expiration = jwt.decode(self.data, options={"verify_signature": False}).get("exp")
except jwt.DecodeError:
pass