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 the ability to provide arbitrary custom header claims #6

Merged
merged 3 commits into from
Jul 23, 2024
Merged

Add the ability to provide arbitrary custom header claims #6

merged 3 commits into from
Jul 23, 2024

Conversation

cwirving
Copy link
Contributor

@cwirving cwirving commented Jul 22, 2024

As discussed in #4 this adds the ability to easily provide arbitrary additional header claims when calling signJWT().

The approach is the same as for the JWT body, allowing extra header claims of any type.

Additionally, the tests have been updated to show that extra header claims of can be provided without any linting errors and that they round-trip correctly.

Finally, fix the missing await in one of the tests which was tripping up in CI builds, but not locally.

@Pinta365 Pinta365 merged commit 220e48f into cross-org:main Jul 23, 2024
2 checks passed
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