checkAuthenticated

Check if a user is authenticated in Arkane

This function call will check if the user is authenticated and redirect the user to options.redirectUri (if present) with the result.

arkaneConnect.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

arkaneConnect.checkAuthenticated(options?: AuthenticationOptions): Promise

Returns

Promise<AuthenticationResult>

Parameters

Parameter

Type

Required

Description

options

AuthenticationOptions

False

Provide extra auth options

Example

// Redirect to https://arkane.network
arkaneConnect.checkAuthenticated({ redirectUri: 'https://arkane.network' });

Object Types