startPasswordless

Deprecation Notice

This SDK is deprecated in favor of the Core and UI JS SDKs. See Migrating to the latest SDKs to use the latest Core and UI SDKs.

Support for the Legacy JS SDK ends on 28 February, 2021.

reach5('startPasswordless', {
  authType: string,
  email: string,
  phoneNumber: string,
  redirectUri: string,
  callback: function,
})

About this command

  • Send magic link to the user with the specified email.

  • Or send verification code to the user with the specified phone number.

  • One of email or phoneNumber is required.

Examples

reach5('startPasswordless', {
  authType: 'magic_link',
  email: 'john.doe@example.com',
  auth: {
    // ...
  }
}, function (err) {
  // Handle error or success (err === null)
});

Parameters

authType string

The password of the profile.

email string

User’s email

phoneNumber string

User’s phone number.

Both the international format and the national conventions of the account’s country are accepted if configured in account settings.

redirectUri string

The URL the user will be redirected to after clicking the password reset page link.

callback string

Event callback that was used with on.