ConstructorOptions

Signature

1
{
2
environment?: string,
3
windowMode?: WindowMode,
4
signMethod?: string,
5
bearerTokenProvider?: () => string,
6
useOverlayWithPopup?: boolean;
7
}
Copied!

Parameters

Option
Description
​environment​
The environment to which you want to connect, possible values are local, staging, prod. Default set to prod.
​windowMode​
The sign method you want to use, possible values are POPUP or REDIRECT. Default set to POPUP.
signMethod
Deprecated Use windowMode instead
bearerTokenProvider
You can implement all the authentication handling yourself and provide Venly Connect with your own bearer token provider. The bearer token provider is a function returning the bearer token (access token) to login to Venly. Default the Venly Connect authentication client is used.
useOverlayWithPopup
When using a popup, show an overlay on the parent screen. Default set to true.
Copy link