Skip to content

feat(auth): bump jsonwebtoken-icp to v10.3.0#2675

Open
peterpeterparker wants to merge 14 commits intomainfrom
feat/update-jsonwebtoken-ic
Open

feat(auth): bump jsonwebtoken-icp to v10.3.0#2675
peterpeterparker wants to merge 14 commits intomainfrom
feat/update-jsonwebtoken-ic

Conversation

@peterpeterparker
Copy link
Contributor

@peterpeterparker peterpeterparker commented Mar 14, 2026

Motivation

jsonwebtoken has fixed val.validate_nbf = true; in v10.3.0 (see CHANGELOG). As a result, many tests were failing because the nbf was provided but, invalid. It's worth to note that the crate ignores validating nbf is provided as none. In other words, if provided, it should be valid, if not provided, no check. That's why the fix concern only the test.

Reference: https://github.com/Keats/jsonwebtoken/blob/master/src/validation.rs#L61

That said, in the API I was not setting nbf for the GitHub auth token. So for consistency I added it in https://github.com/junobuild/api/releases/tag/v0.0.3

@peterpeterparker peterpeterparker marked this pull request as ready for review March 18, 2026 06:26
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