public function email_passwordless_start($email, $type, array $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();
    }
public function email_passwordless_start($email, $type, array $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();
    }
public function email_passwordless_start ( $ email , $ type , array $ 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 ( ) ; }
Start passwordless login process for email

@param string $email      Email address to use.
@param string $type       Use null or "link" to send a link, use "code" to send a verification code.
@param array  $authParams Link parameters (like scope, redirect_uri, protocol, response_type) to modify.

@return mixed

@link https://auth0.com/docs/api/authentication#get-code-or-link
Start passwordless login process for email