Skip to content

Commit

Permalink
Fix/status list on new badge (#5)
Browse files Browse the repository at this point in the history
* feat; status list on new badge

* chore: bump version
  • Loading branch information
coodos authored Mar 7, 2024
1 parent d303a85 commit b8bfaca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanglelabs/web-identity-adapter",
"version": "0.2.0",
"version": "0.2.1",
"description": "did:web adapter",
"main": "dist/index.js",
"types": "dist/index.d.js",
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ export class DidKeyCredentialsManager<
alg: "EdDSA",
};
const types = Array.isArray(type) ? [...type] : [type];
const extras = options.extras ?? {};
const credential: JwtCredentialPayload = {
sub: recipientDid,
nbf: Math.floor(Date.now() / 1000),
Expand All @@ -348,6 +349,7 @@ export class DidKeyCredentialsManager<
],
type: ["VerifiableCredential", "OpenBadgeCredential"],
id,
...extras,
name: type,
issuer: {
id: new URL("/", id).toString(),
Expand Down

0 comments on commit b8bfaca

Please sign in to comment.