Skip to content

Commit

Permalink
fix: add the label on the out-of-band connection
Browse files Browse the repository at this point in the history
Signed-off-by: KulkarniShashank <[email protected]>
  • Loading branch information
KulkarniShashank committed Nov 21, 2023
1 parent 613273e commit f426490
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controllers/credentials/CredentialController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class CredentialController extends Controller {

const credentialMessage = offerOob.message;
const outOfBandRecord = await this.agent.oob.createInvitation({
label: 'test-connection',
label: outOfBandOption.label,
handshakeProtocols: [HandshakeProtocol.Connections],
messages: [credentialMessage],
autoAcceptConnection: true
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/proofs/ProofController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class ProofController extends Controller {
});
const proofMessage = proof.message;
const outOfBandRecord = await this.agent.oob.createInvitation({
label: 'test-connection',
label: createRequestOptions.label,
handshakeProtocols: [HandshakeProtocol.Connections],
messages: [proofMessage],
autoAcceptConnection: true
Expand Down
2 changes: 2 additions & 0 deletions src/controllers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export interface CreateOfferOobOptions {
goalCode?: string;
parentThreadId?: string;
willConfirm?: boolean;
label?: string;
}
export interface CredentialCreateOfferOptions {
credentialRecord: CredentialExchangeRecord;
Expand All @@ -152,6 +153,7 @@ export interface CreateProofRequestOobOptions {
willConfirm?: boolean;
autoAcceptProof?: AutoAcceptProof;
comment?: string;
label?: string;
}

export interface OfferCredentialOptions {
Expand Down

0 comments on commit f426490

Please sign in to comment.