Readonly
cancelGet info about the cancellation if the verification request has been cancelled.
Readonly
flowGet the unique ID of this verification request.
Readonly
otherThe ID of the other device that is participating in this verification.
Readonly
otherThe ID of the other user that is participating in this verification request.
Readonly
ourGet our own supported verification methods that we advertised.
Will be present only we requested the verification or if we’re in the ready state.
Readonly
ownOur own user id.
Readonly
roomGet the room ID if the verification is happening inside a room.
Readonly
theirAccept the verification request.
This method will accept the request and signal that it
supports the m.sas.v1
, the m.qr_code.show.v1
, and
m.reciprocate.v1
method.
m.qr_code.show.v1
will only be signaled if the qrcode
feature is enabled. This feature is disabled by default. If
it's enabled and QR code scanning should be supported or QR
code showing shouldn't be supported the accept_with_methods
method should be used instead.
It returns either a ToDeviceRequest
, a RoomMessageRequest
or undefined
.
Accept the verification request signaling that our client supports the given verification methods.
methods
represents the methods that we should advertise as
supported by us.
It returns either a ToDeviceRequest
, a RoomMessageRequest
or undefined
.
Get the current phase of this request.
Returns a VerificationRequestPhase
.
Start a QR code verification by providing a scanned QR code for this verification flow.
Static
requestCreate an event content that can be sent as a room event to request verification from the other side. This should be used only for verifications of other users and it should be sent to a room we consider to be a DM with the other user.
An object controlling key verification requests.
Interactive verification flows usually start with a verification request, this object lets you send and reply to such a verification request.
After the initial handshake the verification flow transitions into one of the verification methods.