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

Created on 26 Oct 2016  路  1Comment  路  Source: auth0/lock

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

bug

Most helpful comment

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

>All comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

benmadany picture benmadany  路  4Comments

jeaye picture jeaye  路  5Comments

dszmaj picture dszmaj  路  3Comments

sedubois picture sedubois  路  7Comments

cgcote picture cgcote  路  3Comments