AuthenticationOptions

Signature:

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

Parameters:

ParameterDescriptionExample
redirectUriThe 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'
windowModeShow login form in POPUP, or login using redirect. Default iswindowMode passed in ConstructorOptions.'REDIRECT'
useOverlayWithPopupWhen using a popup, show an overlay on the parent screen. Default is useOverlayWithPopup passed in ConstructOptions.false
idpHintWhen 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 providergoogle
facebook
twitter
apple
password
register (this immediatly triggers the registration flow for new users)
emailHintWhen choosing idpHint = password , an emailHint can be provided. This will prefill the email address in the login screen.Example: emailHint: [email protected]