Skip to content

Commit

Permalink
Fix passing agent to did:web fetch options.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Apr 14, 2024
1 parent 02ed0bd commit 5394226
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# bedrock-did-io ChangeLog

## 10.3.1 - 2024-04-dd

### Fixed
- Fix passing `agent` to `did:web` driver fetch options.

## 10.3.0 - 2024-04-14

### Added
Expand Down
7 changes: 5 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ bedrock.events.on('bedrock.start', () => {
// support did:web
const didWebDriver = didMethodWeb.driver({
...cfg.methods.web.driver,
// always use bedrock agent
agent: httpsAgent
fetchOptions: {
...cfg.methods.web.driver.fetchOptions,
// always use bedrock agent
agent: httpsAgent
}
});
for(const keyType in cfg.methods.web.keyTypes) {
const handler = SUPPORTED_KEY_TYPES.get(keyType);
Expand Down

0 comments on commit 5394226

Please sign in to comment.