API Reference

Index

createAuthRequest

CreatesAuthRequest to get the authentication challenge message.

Parameters

Returns

AuthRequest

createSignData

Creates a message for the user to sign with the wallet.

Convert the message to a JSON string before signing.

Parameters

Returns

SignData

requestQR

Gets the challenge in the form of a QR code with AuthChallenge.

Parameters

AuthChallenge

Returns

Promise<QrResult> , including the following properties:

queryQRResult

Fetches the result of a user scanning the QR code.

The query loops until a result or an error is returned. To stop the query, call cancelQueryQRResult.

Parameters

Returns

Promise<ChallengeResponse>

cancelQueryQRResult

Stops querying the result of a QR code scan.

Parameters

None

Returns

void

Errors

Last updated