public function email_passwordless_start($email, $type, $authParams = [])
{
$data = ['client_id' => $this->client_id, 'connection' => 'email', 'send' => $type, 'email' => $email];
if (!empty($authParams)) {
$data['authParams'] = $authParams;
}
return $this->apiClient->post()->passwordless()->start()->withHeader(new ContentType('application/json'))->withBody(json_encode($data))->call();
}