API Reference
Index
createAuthRequest
CreatesAuthRequest
to get the authentication challenge message.
Parameters
Parameter | Type | Description |
| | IdAuth: = 0 IdAuthAndVcAuth: = 1 |
Returns
createSignData
Creates a message for the user to sign with the wallet.
Convert the message to a JSON string before signing.
Parameters
Parameter | Type | Description |
|
| See details here. |
|
| DID of the signer (user). |
Returns
requestQR
Gets the challenge in the form of a QR code with AuthChallenge
.
Parameters
Returns
Promise<QrResult>
, including the following properties:
Property | Type | Description |
|
| QR code ID. |
|
| Text for generating the QR code. |
queryQRResult
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
Property | Type | Description | Required |
|
| QR code ID. | Yes |
|
| Time interval between two queries, in milliseconds. Default: 1000 | No |
Returns
cancelQueryQRResult
Stops querying the result of a QR code scan.
Parameters
None
Returns
void
Errors
Member | Value |
|
|
|
|
|
|
|
|
|
|
Last updated