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 redirectUri option, make sure that the SDK and theAuthenticationResult handling is also present on the page you redirect to.

Signature

venlyConnect.checkAuthenticated(options?: AuthenticationOptions): Promise

Returns

Promise<AuthenticationResult>

Parameters

Parameter
Type
Required
Description
options
False
Provide extra auth options

Example

// Redirect to https://wallet.venly.io
venlyConnect.checkAuthenticated({ redirectUri: 'https://wallet.venly.io' });

Object Types