diff --git a/src/core/web_api.js b/src/core/web_api.js index b0877aa8d..e0cff8a10 100644 --- a/src/core/web_api.js +++ b/src/core/web_api.js @@ -11,7 +11,7 @@ class Auth0WebAPI { const hostedLoginPage = window.location.host === domain; // when it is used on on the hosted login page, it shouldn't use popup mode - opts.popup = hostedLoginPage ? opts.popup : false; + opts.redirect = hostedLoginPage ? true : opts.redirect; opts.oidcConformant = opts.oidcConformant || false;