Skip to content

Commit

Permalink
chore: Switch to fixed header type + dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Eengineer1 committed Jan 16, 2024
1 parent aea37eb commit 10340c6
Show file tree
Hide file tree
Showing 4 changed files with 1,152 additions and 1,164 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
"@semantic-release/npm": "^11.0.2",
"@semantic-release/release-notes-generator": "^12.1.0",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.5",
"@types/node": "^20.11.3",
"conventional-changelog-angular": "^7.0.0",
"cross-env": "^7.0.3",
"jest": "^29.7.0",
"lerna": "^8.0.1",
"nx": "^17.1.3",
"prettier": "^3.1.1",
"lerna": "^8.0.2",
"nx": "^17.2.8",
"prettier": "^3.2.2",
"semantic-release": "^22.0.12",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/SDJwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export class SDJwt extends Object {
jwtCryptoProvider: JWTCryptoProvider,
keyId: string | undefined | null = null,
withHolderJwt: string | undefined | null = null,
typ: string = 'JWT',
typ: string = 'vc+sd-jwt',
options?: any
): SDJwt {
return SDJwt.createFromSignedJWT(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class CompactAsyncJWTCryptoProvider implements AsyncJWTCryptoProvider {

async signAsync(payload: JSONObject, keyId?: string | null): Promise<string> {
const jwt = await new SignJWT(payload)
.setProtectedHeader({ alg: this.algorithm, kid: keyId || undefined, typ: 'JWT' })
.setProtectedHeader({ alg: this.algorithm, kid: keyId || undefined, typ: 'vc+sd-jwt' })
.sign(this.keyParam, this.signOptions);
return jwt;
}
Expand Down
Loading

0 comments on commit 10340c6

Please sign in to comment.