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

Fix forwarding helpers: accept date option and use serverTime instead of local time by default #196

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

larabr
Copy link
Collaborator

@larabr larabr commented Mar 12, 2024

generateForwardingMaterial, doesKeySupportForwarding, and isForwardingKey now accept a date as input, and fallback to the server time by default.

Previously, the functions would use local time to filter encryption keys, meaning wrong results might be returned with local time in the future compared to key creation time.

@larabr larabr merged commit bc24425 into ProtonMail:main Mar 12, 2024
1 check passed
…ardingKey` to accept a date or use serverTime

The functions now accept a date as input, and fallback to the server time by default.

Previously, the functions would use local time to filter encryption keys, meaning
wrong results might be returned with local time in the future compared
to key creation time.
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.

2 participants