@did-connect/handler
v2.2.4
Published
Abstract handler for did-connect relay server
Downloads
7,009
Readme
Overview
This package defines the core handlers of a DID Connect relay, the handlers fall into two categories:
- HTTP handlers
handleSessionCreate
: create a new session and persist it to storagehandleSessionRead
: read a session from storagehandleSessionUpdate
: update a session in storage, updates are limitedhandleSessionDelete
: delete a session from storagehandleClaimRequest
: verify DID Wallet and send DID Connect requestshandleClaimResponse
: verify DID Wallet and parse DID Connect responses
- WebSocket handlers
wsServer
: a WebSocket server that can be attached to a HTTP server and used to broadcast session change events to client
Notice
This package is baked into Blocklet Service and DID Connect Relay blocklet, you should not use it directly in any application.