API Reference
Creates
AuthRequest
to get the authentication challenge message.Parameter | Type | Description |
action | enum | IdAuth: = 0 IdAuthAndVcAuth: = 1 |
Creates a message for the user to sign with the wallet.
Convert the message to a JSON string before signing.
Parameter | Type | Description |
AuthChallenge | AuthChallenge | |
account | string | DID of the signer (user). |
Gets the challenge in the form of a QR code with
AuthChallenge
.Promise<QrResult>
, including the following properties:Property | Type | Description |
id | string | QR code ID. |
text | string | Text for generating the QR code. |
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
.Property | Type | Description | Required |
id | string | QR code ID. | Yes |
duration | number | Time interval between two queries, in milliseconds. Default: 1000 | No |
Stops querying the result of a QR code scan.
None
void
Member | Value |
VersionNotSupport | ERR_WRONG_VERSION |
TypeNotSupport | ERR_TYPE_NOT_SUPPORTED |
ActionNotSupport | ERR_ACTION_NOT_SUPPORTED |
UserCanceled | USER_CANCELED |
UnknownError | ERR_UNDEFINED |
Last modified 1yr ago