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.
exp
1 parent 61c47f7 commit ad3abe5Copy full SHA for ad3abe5
src/fastapi_oauth2/middleware.py
@@ -63,7 +63,7 @@ def jwt_decode(cls, token: str) -> dict:
63
64
@classmethod
65
def jwt_create(cls, token_data: dict) -> str:
66
- expire = datetime.utcnow() + timedelta(minutes=cls.expires)
+ expire = datetime.utcnow() + timedelta(seconds=cls.expires)
67
return cls.jwt_encode({**token_data, "exp": expire})
68
69
0 commit comments