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.
1 parent 7afbd96 commit d86d3deCopy full SHA for d86d3de
fastapi_auth_jwt/dependencies.py
@@ -70,7 +70,7 @@ def _get_jwt_payload(
70
validator.cookie_name,
71
)
72
raise UnauthorizedMissingCookie()
73
- return validator._decode(cookie_token, secret=validator._get_jwt_cookie_secret())
+ return validator._decode(cookie_token)
74
75
76
def _get_jwt_payload_and_validator(
@@ -95,7 +95,7 @@ def _get_jwt_payload_and_validator(
95
raise list(exceptions.values())[0]
96
raise UnauthorizedCompositeJwtError(exceptions)
97
98
- if validator.cookie_enabled:
+ if validator.cookie_enabled and validator.renew_cookie_on_response:
99
if not validator.cookie_name:
100
_logger.info("Cookie name not set for validator %s", validator.name)
101
raise ConfigurationError()
0 commit comments