Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth0LockPasswordless showing username & password #1256

Closed
de-code opened this issue Feb 8, 2018 · 2 comments
Closed

Auth0LockPasswordless showing username & password #1256

de-code opened this issue Feb 8, 2018 · 2 comments

Comments

@de-code
Copy link

de-code commented Feb 8, 2018

Excited that #1070 had been merged... I am now trying to migrate from auth0-lock-passwordless to this module, using React.

My code:

import WebAuth from 'auth0-js';
import Auth0LockPasswordless from 'auth0-lock';

lock = new Auth0LockPasswordless(
  CLIENT_ID, DOMAIN, {
    passwordlessMethod: "link",
    allowShowPassword: false,
    allowSignUp: false
  }
);
# lock.on...

# deferred / when button is clicked:

lock.show();

(previously I would have called lock.magiclink())

This is still showing a form with the username/password instead of just an email.

On the connections tab, the client has Passwordless (email) enabled and Username-Password-Authentication database disabled.

BTW The migration guide mentions auth0-lock/passwordless which perhaps should be auth0-lock?

@luisrudge
Copy link
Contributor

The migration guide is correct and this is the reason you're getting the normal lock showing up. We have a different entry point for passwordless, so you have to import it like this: import Auth0LockPasswordless from 'auth0-lock/passwordless';

@de-code
Copy link
Author

de-code commented Feb 8, 2018

Okay, thank you for confirming. I wasn't thinking straight I think. That import isn't working for me. I will have to debug why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants