mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-30 13:05:08 +00:00
fix(cacher): store a jwt with no exp claim without an expiration
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user