I’m using embedded login with auth0.js
and I’m able to successfully authenticate the user using the webAuth.login()
method. However, instead of reloading the parent window, the popup window gets reloaded displaying protected areas of the web app.
I tried creating a popup login result handler component that looks like this:
function PopUpHandler() {
const webAuth = new auth0.WebAuth({
domain: AUTH0_DOMAIN,
clientID: AUTH0_CLIENT_ID,
});
return webAuth.popup.callback();
}
export default PopUpHandler;
It still doesn’t work even when I do this. Am I missing something here?