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

[Lock 10.5.0] "TypeError: next is not a function" when closing social connection popup #682

Closed
ArnaudD opened this issue Oct 26, 2016 · 1 comment
Labels
bug This points to a verified bug in the code
Milestone

Comments

@ArnaudD
Copy link

ArnaudD commented Oct 26, 2016

What happens :

  • Uncaught TypeError: next is not a function
    image
  • Lock dialog stay in "loading mode", the user needs to reload the page to try again
    image

Here is the stacktrace

actions.js:205 Uncaught TypeError: next is not a function
    at logInErrorHandler (webpack:///./~/auth0-lock/lib/core/actions.js?:205:12)
    at logInError (webpack:///./~/auth0-lock/lib/core/actions.js?:239:3)
    at eval (webpack:///./~/auth0-lock/lib/core/actions.js?:213:18)

This error happens when :

  1. Lock v10.5.0 (from npm) is configured in popup mode
  2. We click on a social provider button in lock
  3. The popup opens
  4. We close the popup manually

Lock is used in a react app, bundled with webpack, here the code we use :

const options = {
  auth: {
    params: {
      scope: 'openid email',
    },
    redirect: false,
  },
};

const lock = new Auth0Lock(process.env.AUTH0_CLIENT_ID, process.env.AUTH0_DOMAIN, options);

lock.show();

Browser : Chrome 54 - Ubuntu 16.04

@glena
Copy link
Contributor

glena commented Oct 27, 2016

Thx for reporting, it will be fixed with the next release (10.5.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

3 participants