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.
Properties
Section titled “Properties”sas:
GeneratedSas
Defined in: src/crypto-api/verification.ts:334
The generated SAS to be shown to the user
Methods
Section titled “Methods”cancel()
Section titled “cancel()”cancel():
void
Defined in: src/crypto-api/verification.ts:350
Cancel the verification flow
Returns
Section titled “Returns”void
confirm()
Section titled “confirm()”confirm():
Promise<void>
Defined in: src/crypto-api/verification.ts:340
Function to call if the user confirms that the SAS matches.
Returns
Section titled “Returns”Promise<void>
A Promise that completes once the m.key.verification.mac is queued.
mismatch()
Section titled “mismatch()”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.
Returns
Section titled “Returns”void