ConstructorOptions

Signature:

{
  environment?: string,
  windowMode?: WindowMode,
  signMethod?: string,
  bearerTokenProvider?: () => string,
  useOverlayWithPopup?: boolean;
}

Parameters:

OptionDescription
environmentThe environment to which you want to connect, possible values are local, sandbox, prod. Default set to prod.
windowModeThe sign method you want to use, possible values are POPUP or REDIRECT. Default set to POPUP.
bearerTokenProviderYou 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.
useOverlayWithPopupWhen using a popup, show an overlay on the parent screen. Default set to true.