1.20.0
or greater.
startPasswordless
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.
login
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.
.startPasswordless(email: String, type: String, connection: String)
or
.startPasswordless(phoneNumber: String, type: String, connection: String)
Parameter | Required | Description |
---|---|---|
email | required | (String) Either email or phoneNumber is required (not both), depending on which will be used. |
phoneNumber | required | (String) Either email or phoneNumber is required (not both), depending on which will be used. |
type | optional | (String) The type of Passwordless transaction to use, either .Code or .iOSLink . Defaults to .Code . |
connection | optional | (String) The name of the connection to use for the Passwordless authentication. Defaults to sms for the SMS overload or to email for the email overload |