web5-js icon indicating copy to clipboard operation
web5-js copied to clipboard

Add `typ` override to `Jwt.sign()`

Open KendallWeihe opened this issue 2 months ago • 2 comments

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 avatar Apr 10 '24 18:04 KendallWeihe

@nitro-neal this may be up your alley?

KendallWeihe avatar Apr 10 '24 18:04 KendallWeihe

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

nitro-neal avatar Apr 10 '24 21:04 nitro-neal