checkAuthenticated
Check if a user is authenticated in Venly.
This function call will check if the user is authenticated and redirect the user to options.redirectUri (if present) with the result.
venlyConnect.checkAuthenticated();
If you set the
redirectUrioption, make sure that the SDK and theAuthenticationResulthandling is also present on the page you redirect to.
Signature:
venlyConnect.checkAuthenticated(options?: AuthenticationOptions): Promise
Returns:
Promise<AuthenticationResult>
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
options | AuthenticationOptions | False | Provide extra auth options |
Example:
// Redirect to https://wallet.venly.io
venlyConnect.checkAuthenticated({ redirectUri: 'https://wallet.venly.io' });
Object Types
Updated almost 2 years ago