Please include the following information in your post:
- Which SDK this is regarding: auth0.js
- SDK Version: 9.15.0
- Platform Version: Node 15.12.0
I have an SPA built in Gatsby with classic universal login (classic, because passwordless is not yet supported in the new universal login) and it seems that by default the passwordless login uses the code method. I’d like to change this to the magic-link method, but I can’t seem to find the right information about this.
I was going over the options object for the new auth0.WebAuth(options)
but I can’t seem to find any options to change the passwordless method from code to magic-link.
In the auth0.js documentation, it says to set:
webAuth.passwordlessStart({
connection: ‘email’,
send: ‘code’,
email: ‘foo@bar.com’
}, function (err,res) {
// handle errors or continue
}
);
…but, if I understand correctly, this implies an embedded login form instead of using the auth0 hosted login.
So I’m confused: is it the case that auth0-hosted login doesn’t support magic-links and I should implement an embedded login or it does support magic-links and I’m missing some information on how to tell auth0 to use magic-links instead of codes?
Cheers!