Skip to content

Error: Unsupported verification method #5092

@danilobassi8

Description

@danilobassi8

Hi, I'm getting an error when trying to verify a user via QR. I've tried using the SAS method, and it worked, but for some reason when I try to use any of the QR method it does not work. (Also, on the documentation is not very clear on how should I use this methods).

When the VerificationRequest instance is on phase Ready , if I try to call this functions, I always get the same error:

import { VerificationMethod } from 'matrix-js-sdk/lib/types';


request.startVerification(VerificationMethod.Reciprocate);
request.startVerification(VerificationMethod.ScanQrCode);
request.startVerification(VerificationMethod.ShowQrCode);

Error: Unsupported verification method: m.reciprocate.v1
Error: Unsupported verification method: m.qr_code.show.v1
Error: Unsupported verification method: m.qr_code.scan.v1

I also tried explicitly adding all those methods to the verificationMethods property on the initialization params, but it doesn't work.

If I try to do something like

const data = await request.generateQRCode()

I always get undefined. Even if the current phase is Ready. The method Docstring says:

Generate the data for a QR code allowing the other device to verify this one, if it supports it.
Only returns data once phase is VerificationPhase.Ready and the other party can scan a QR code; otherwise returns undefined.

Honestly, I don't know what I'm doing wrong. Is it a bug?

The error seems to come from a web assembly file, so its impossible for me to debug this.

Image

If I click on matrix_sdk_crypto_wasm_bg.wasm I see this:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions