verifyPhoneNumber

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('verifyPhoneNumber', {
  accessToken: string,
  phoneNumber: string,
  verificationCode: string,
  callback: function,
})

About this command

Verify user’s phone number with the verification code sent by SMS.

Examples

reach5('verifyPhoneNumber' , {
  accessToken: 'eyJ0eXAiOiJKV1QiL...',
  phoneNumber: '+33606060606',
  verificationCode: '123456'
}, function(err, result) {
  if (err) {
    // Handle error
    return;
  }
  // do something with result
});

Parameters

accessToken string

User’s access token.

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.

verificationCode string

Verification code for request password reset flow.

callback string

Event callback that was used with on.