1.20.0 or greater.
How Passwordless works
Passwordless requires two steps:- Request the code
- Input the code
Step 1: Request the code
In this example, requesting the code is done by callingstartPasswordless with the user’s email, and the type of connection. The type parameter will default to Code. On success, you’ll probably display a notice to the user that their code is on the way, and perhaps route them to a view to input that code.
Step 2: Input the code
Once the user has a code, they can input it. Call thelogin method, and pass in the user’s email, the code they received, and the name of the connection in question. Upon success, you will receive a Credentials object in the response.
Passwordless parameters
Passwordless authentication can be started with a variety of different parameters. For example:.startPasswordless(email: String, type: String, connection: String)
or
.startPasswordless(phoneNumber: String, type: String, connection: String)