I need to share my app with someone for demo purposes and who doesn’t want to login, they just want to be authenticated automatically. Is there a way to supply email/password in the url or use an obscure url to make the authentication automatic and bypass the entire lock login screen? Or better yet, I know how to prefill the email field, can I prefill password as well? I tried and it didn’t work
You can achieve this through passwordless authentication. It allows you to authenticate users through a one time code via SMS or email or through a magic link via email.
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');
});
}
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.