Skip to content

fix: allow previous time chunk in verifySignature#160

Open
druppelt wants to merge 1 commit into
u14app:mainfrom
druppelt:fix/allow-previous-time-chunk-in-verifySignature
Open

fix: allow previous time chunk in verifySignature#160
druppelt wants to merge 1 commit into
u14app:mainfrom
druppelt:fix/allow-previous-time-chunk-in-verifySignature

Conversation

@druppelt
Copy link
Copy Markdown
Contributor

verifySignature is grouping time into chunks of 100,000 milliseconds. If the frontend generated the signature at 1776000099999 and the backend checked it at 1776000100001 (just 2 milliseconds later), the substring changes from 17760000 to 17760001. The hash will be completely different. This commit fixes this by also checking against the previous time window.

Refs: #158

verifySignature is grouping time into chunks of 100,000 milliseconds. If the frontend generated the signature at 1776000099999 and the backend checked it at 1776000100001 (just 2 milliseconds later), the substring changes from 17760000 to 17760001. The hash will be completely different. This commit fixes this by also checking against the previous time window.

Refs: u14app#158
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.

1 participant