EdgeDidWebResolver
@atiproto/edge-resolvers
Extends DidWebResolver from @atproto/identity to use the Web Platform fetch API with request timeouts via timed(). Resolves did:web: identifiers by fetching /.well-known/did.json from the corresponding domain.
Constructor
typescript
new EdgeDidWebResolver(options?: DidWebResolverOptions)
| Option | Type | Default | Description |
|---|---|---|---|
| timeout | number | 3000 | Request timeout in milliseconds. Uses timed() with an AbortSignal. |
Example
typescript
import { EdgeDidWebResolver } from "@atiproto/edge-resolvers";const resolver = new EdgeDidWebResolver({ timeout: 5000 });const didDoc = await resolver.resolve("did:web:example.com");
Related
- EdgeDidResolver — aggregates all DID method resolvers
- EdgeDidPlcResolver — resolves did:plc: identifiers