Skip to content

Commit 339201a

Browse files
committed
fix(remote-server): list DIDCommMessaging service entry by default for did:web
1 parent 584766c commit 339201a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/remote-server/src/default-did.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,15 @@ export async function createDefaultDid(options: CreateDefaultDidOptions) {
3333
serviceEndpoint: messagingServiceEndpoint,
3434
},
3535
})
36+
// list DIDCommMessaging service at the same endpoint
37+
await options?.agent?.didManagerAddService({
38+
did: serverIdentifier.did,
39+
service: {
40+
id: serverIdentifier.did + '#msg-didcomm',
41+
type: 'DIDCommMessaging',
42+
description: 'Handles incoming DIDComm messages',
43+
serviceEndpoint: messagingServiceEndpoint,
44+
},
45+
})
3646
}
3747
}

0 commit comments

Comments
 (0)