diff options
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/revocation.py')
| -rw-r--r-- | packages/meshbay-node/src/meshbay_node/revocation.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/meshbay-node/src/meshbay_node/revocation.py b/packages/meshbay-node/src/meshbay_node/revocation.py index abbff4d..d3ee18f 100644 --- a/packages/meshbay-node/src/meshbay_node/revocation.py +++ b/packages/meshbay-node/src/meshbay_node/revocation.py @@ -66,7 +66,9 @@ class RevocationSubscriber: def verify_and_apply(self, token: str) -> bool: """Verify a revocation token and apply it. Returns True if valid.""" try: + from meshbay_common.handshake import JWT_LEEWAY_SECONDS payload = jwt.decode(token, self._hub_pk_pem, algorithms=["EdDSA"], + leeway=JWT_LEEWAY_SECONDS, options={"verify_exp": False}) if payload.get("type") != "revocation": return False |