Skip to content

Commit

Permalink
fix(remote-server): list DIDCommMessaging service entry by default fo…
Browse files Browse the repository at this point in the history
…r did:web
  • Loading branch information
mirceanis committed Jul 14, 2021
1 parent 584766c commit 339201a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/remote-server/src/default-did.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,15 @@ export async function createDefaultDid(options: CreateDefaultDidOptions) {
serviceEndpoint: messagingServiceEndpoint,
},
})
// list DIDCommMessaging service at the same endpoint
await options?.agent?.didManagerAddService({
did: serverIdentifier.did,
service: {
id: serverIdentifier.did + '#msg-didcomm',
type: 'DIDCommMessaging',
description: 'Handles incoming DIDComm messages',
serviceEndpoint: messagingServiceEndpoint,
},
})
}
}

0 comments on commit 339201a

Please sign in to comment.