I’ve been trying this method but I keep getting errors. The latest error is:
code:“bad.connection”
description:“Connection does not exist”
my code is copy/pasted from the example code like this:
function sendEmail() {
var webAuth = new auth0.WebAuth({
domain: ‘app.auth0.com’,
clientID: ‘clientid’,
redirectUri: ‘redirecturl’,
responseType: ‘token id_token’,
});
var email = $('#email').val();
console.log('email', email);
webAuth.passwordlessStart({
connection: 'email',
send: 'link',
email: email,
}, function (err,res) {
if (err) {
console.log(err);
}
console.log('done');
});
}