Skip to content

Commit

Permalink
change flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
glena committed Dec 30, 2016
1 parent 7f24943 commit ed8cb75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/web_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class Auth0WebAPI {
// when it is used on on the hosted login page, it shouldn't use popup mode
opts.popup = hostedLoginPage ? opts.popup : false;

opts.legacyMode = opts.legacyMode === false ? false : true;
opts.oidcConformant = opts.oidcConformant || false;

// when it is used on on the hosted login page, it should use the legacy mode
// (usernamepassword/login) in order to continue the transaction after authentication
if (hostedLoginPage || opts.legacyMode) {
if (hostedLoginPage || !opts.oidcConformant) {
this.clients[lockID] = new Auth0LegacyAPIClient(clientID, domain, opts);
} else {
this.clients[lockID] = new Auth0APIClient(clientID, domain, opts);
Expand Down

0 comments on commit ed8cb75

Please sign in to comment.