We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77937c0 + 00f8c40 commit 7ced58bCopy full SHA for 7ced58b
fastapi_clerk_auth/__init__.py
@@ -29,6 +29,7 @@ class ClerkConfig(BaseModel):
29
jwks_lifespan: int = 300
30
jwks_headers: Optional[dict[str, Any]] = None
31
jwks_client_timeout: int = 30
32
+ leeway: int = 0
33
34
35
class HTTPAuthorizationCredentials(FastAPIHTTPAuthorizationCredentials):
@@ -141,6 +142,7 @@ def _decode_token(self, token: str) -> dict | None:
141
142
"verify_aud": self.config.verify_aud,
143
"verify_iss": self.config.verify_iss,
144
},
145
+ leeway=self.config.leeway
146
)
147
return dict(jsonable_encoder(decoded_token))
148
except Exception as e:
0 commit comments