Overview
This article clarifies whether there is a way to configure a passwordless email connection so that only a code is sent.
Applies To
- Passwordless Email Connection
Solution
- If using Lock’s passwordless mode, set
passwordlessMethod
tocode
in the options, e.g.:
var passwordlessOptions = {
allowedConnections: ['email'],
passwordlessMethod: 'code',
auth: {
redirectUrl: 'http://localhost:3000/callback';,
responseType: 'token id_token',
params: {
scope: 'openid email'
}
}
}
var lockPasswordless = new Auth0LockPasswordless(
'{yourClientId}',
'{yourDomain}',
passwordlessOptions
);
- If using the /passwordless/start endpoint, set the
send
parameter tocode
.