Passwordless Email Connection to Send Code Only
Sep 10, 2025
Overview
Applies To
- Passwordless Email Connection
Solution
- If using Lock's passwordless mode, set `passwordlessMethod` to `code` 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 to `code`.