Interface ShowSasCallbacks

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.

interface ShowSasCallbacks {
    sas: GeneratedSas;
    cancel(): void;
    confirm(): Promise<void>;
    mismatch(): void;
}

Properties

Methods

Properties

The generated SAS to be shown to the user

Methods

  • 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 void