This property is used to define the base URL which is queried with each HTTP request executed using this backend service.
This property sets the request handler used for the implemented
requests. This handler forwards the execution of the request to
axios
.
This method executes a backend API request to
the endpoint /auth/challenge
to generate an
authentication challenge that is then attached
to a QR Code to perform authentication on-chain.
This method executes a backend API request to
the endpoint /me
and returns the authenticated
user's profile information.
Generate URL for .call() method
string
This method executes a backend API request to
the endpoint /auth/token
to retrieve a user's
access/refresh token [pair].
Note that this method will only be successful after
an authentication challenge was included correctly
inside a transaction on dHealth Network.
The authentication challenge that was used to perform sign-in (on-chain).
This method executes a backend API request to
the endpoint /auth/logout
to revoke the user's
access token (sign-out / log-out).
Generated using TypeDoc
This class handles managing of authentication related actions.
Currently includes 2 methods which are responsible for getting QR code authCode and accessToken
Using the Auth class
Should randomly select one of the multiple authentication registries
Should include the selected registry in the /auth/challenge request
v0.2.0