diff --git a/src/controllers/credentials/CredentialController.ts b/src/controllers/credentials/CredentialController.ts index db4fb74a..4071ed51 100644 --- a/src/controllers/credentials/CredentialController.ts +++ b/src/controllers/credentials/CredentialController.ts @@ -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 diff --git a/src/controllers/proofs/ProofController.ts b/src/controllers/proofs/ProofController.ts index 965dc3b0..4e95bdd7 100644 --- a/src/controllers/proofs/ProofController.ts +++ b/src/controllers/proofs/ProofController.ts @@ -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 diff --git a/src/controllers/types.ts b/src/controllers/types.ts index 8f36c3aa..ddd420e0 100644 --- a/src/controllers/types.ts +++ b/src/controllers/types.ts @@ -136,6 +136,7 @@ export interface CreateOfferOobOptions { goalCode?: string; parentThreadId?: string; willConfirm?: boolean; + label?: string; } export interface CredentialCreateOfferOptions { credentialRecord: CredentialExchangeRecord; @@ -152,6 +153,7 @@ export interface CreateProofRequestOobOptions { willConfirm?: boolean; autoAcceptProof?: AutoAcceptProof; comment?: string; + label?: string; } export interface OfferCredentialOptions {