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 typ override to Jwt.sign() #488

Open
KendallWeihe opened this issue Apr 10, 2024 · 2 comments
Open

Add typ override to Jwt.sign() #488

KendallWeihe opened this issue Apr 10, 2024 · 2 comments
Assignees

Comments

@KendallWeihe
Copy link
Contributor

In our KCC issuance work we have a couple of JWT's which need to have a JWS header typ of something other-than the default value of "JWT". Specifically, an access_token JWT (here) needs the value application/at+jwt and also a proof.jwt (here) needs the value openid4vci-proof+jwt.

We need a way, while generating a JWT (via the call Jwt.sign() right?) to override this value. For example, in web5-go we offer a Type() variadic parameter.

@KendallWeihe
Copy link
Contributor Author

@nitro-neal this may be up your alley?

@nitro-neal nitro-neal self-assigned this Apr 10, 2024
@nitro-neal
Copy link
Contributor

yea good catch, we will need to update the sdks to accept and create these. I'll assign this to myself and knock these out in js and kt

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

No branches or pull requests

2 participants