Skip to content

ShowSasCallbacks

Defined in: src/crypto-api/verification.ts:332

Callbacks for user actions while a SAS is displayed.

This is exposed as the payload of a VerifierEvent.ShowSas event, or directly from the verifier as sasEvent.

sas: GeneratedSas

Defined in: src/crypto-api/verification.ts:334

The generated SAS to be shown to the user

cancel(): void

Defined in: src/crypto-api/verification.ts:350

Cancel the verification flow

void


confirm(): Promise<void>

Defined in: src/crypto-api/verification.ts:340

Function to call if the user confirms that the SAS matches.

Promise<void>

A Promise that completes once the m.key.verification.mac is queued.


mismatch(): void

Defined in: src/crypto-api/verification.ts:347

Function to call if the user finds the SAS does not match.

Sends an m.key.verification.cancel event with a m.mismatched_sas error code.

void