MCPcopy Index your code
hub / github.com/commandoperator/cmdop-sdk / pin

Method pin

node/src/streaming.ts:132–140  ·  view source on GitHub ↗

Answer a `pin_required` frame with the entered connection PIN.

(challengeId: string, pin: string)

Source from the content-addressed store, hash-verified

130
131 /** Answer a `pin_required` frame with the entered connection PIN. */
132 async pin(challengeId: string, pin: string): Promise<void> {
133 await this.source.answer(
134 create(EnvelopeSchema, {
135 id: this.source.id,
136 kind: Envelope_Kind.ANSWER,
137 payload: { case: "pinAnswer", value: { challengeId, pin } },
138 }),
139 );
140 }
141
142 /**
143 * Answer a `confirm_required` frame. `accept=true` resumes the stream onto the

Callers 1

transport.test.tsFile · 0.45

Calls 1

answerMethod · 0.65

Tested by

no test coverage detected