AuthenticationOptions

Signature

{
  redirectUri?: string,
  windowMode: WindowMode,
  useOverlayWithPopup?: boolean,
  closePopup?: boolean,
  idpHint?: string
}

Parameters

Parameter

Description

Example

redirectUri

The URI you want the user to be redirected after checking authentication. Only used when windowMode = REDIRECT. Not required, default is the current URI

'https://foo.io'

windowMode

Show login form in POPUP, or login using redirect. Default iswindowMode passed in ConstructorOptions.

'REDIRECT'

useOverlayWithPopup

When using a popup, show an overlay on the parent screen. Default is useOverlayWithPopup passed in ConstructOptions.

false

idpHint

When passed, the initial login screen where a user can choose between social logins and regular signings is skipped and goes directly to the given identity provider

google

facebook

twitter apple password register (this immediatly triggers the registration flow for new users)

emailHint

When choosing idpHint = password , an emailHint can be provided. This will prefill the email address in the login screen.

Example: emailHint: 'test@test.com'

Last updated