public function Authentication::sms_passwordless_start in Auth0 Single Sign On 8.2
Start passwordless login process for SMS.
@link https://auth0.com/docs/api/authentication#get-code-or-link
Parameters
string $phone_number Phone number to use.:
Return value
mixed
File
- vendor/
auth0/ auth0-php/ src/ API/ Authentication.php, line 302
Class
- Authentication
- Class Authentication
Namespace
Auth0\SDK\APICode
public function sms_passwordless_start($phone_number) {
$data = [
'client_id' => $this->client_id,
'connection' => 'sms',
'phone_number' => $phone_number,
];
return $this->apiClient
->method('post')
->addPath('passwordless')
->addPath('start')
->withBody(json_encode($data))
->call();
}