Skip to content

Commit

Permalink
fix: create did web and fetch did document
Browse files Browse the repository at this point in the history
Signed-off-by: Nam Hoang <[email protected]>
  • Loading branch information
namhoang1604 committed Jul 27, 2023
1 parent 66908fd commit 974c8cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/demo-explorer/src/pages/ManagedIdentifiers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ const ManagedIdentifiers = () => {
description: 'a DIDComm endpoint',
},
}
} else if (provider === 'did:web') {
options = {
keyType: 'Ed25519',
}
}

const identifier = await agent?.didManagerCreate({
alias,
provider,
Expand Down
2 changes: 1 addition & 1 deletion packages/remote-server/src/web-did-doc-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export const WebDidDocRouter = (options: WebDidDocRouterOptions): Router => {
':' +
req.params[0].replace(/\//g, ':'),
});
const didDoc = didDocForIdentifier(identifier);
const didDoc = await didDocForIdentifier(identifier);
res.json(didDoc);
} catch (e) {
res.status(404).send(e);
Expand Down

0 comments on commit 974c8cc

Please sign in to comment.