Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 1 second leeway when decoding JWT from FxA notifications #20210

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

diox
Copy link
Member

@diox diox commented Jan 19, 2023

FxA sends iat as a float with milliseconds, pyjwt 2.6.0 compares with datetime.now() in seconds, causing issues. We add a short 1-second leeway to work around that.

Fixes mozilla/addons#9044

FxA sends iat as a float with milliseconds, pyjwt 2.6.0 compares
with datetime.now() in seconds, causing issues. We add a short
1-second leeway to work around that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Addons FxA webhook endpoint is returning 403s to FxA
2 participants