Access_Denied for embedding auth login on react-based SPA

Hi, I’m follwoing the Quick Start for react-based SPA to embed auth0 login. Currently the login page(Auth lock?) provided by auth0 comes up when I click the login button that I made, but when I click on facebook login, I get the follwoing:

Object {error: “access_denied”, errorDescription: “Cannot read property ‘split’ of undefined”, state: “0K_~VzBJJ5SwQSu5naemhFD-5L~SVYEl”}

When I click google login, I get:
Object {error: “access_denied”, errorDescription: “Cannot read property ‘split’ of undefined”, state: “0K_~VzBJJ5SwQSu5naemhFD-5L~SVYEl”}

Can anyone help me on this problem?

The most common cause for an access_denied error which has an associated description that sounds like a Javascript error is the use of a rule that is throwing an error.

In this case it seem that you have a rule that is calling the split method on a variable or property that is undefined. Ensure that your rules make the the correct assumptions for all the scenarios you need to support or implement guards again possibly missing data.