API Reference
Last updated
Was this helpful?
Last updated
Was this helpful?
CreatesAuthRequest
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.
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.
queryQRResult
Fetches the result of a user scanning the QR code.
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
See details .
The query loops until a result or an error is returned. To stop the query, call .