Why the logout opens a browser tab when i logout

Ready to post? :mag: First, try searching for your answer.
i am using remix run and office js excel add in for the taskpane everything works fine except the logout it opens the a browser tab i want to do the same inside the taskpane
make sure that for login i am using loginWithPopup
and for logout logout({ returnTo: window.location.origin, localOnly: true });

Hi there @mariamfelmadawy ,

Can you please link the Auth0 repo you use to integrate? Is it this one LogoutOptions | @auth0/auth0-spa-js?

hi marcelina, i have added the openUrl option: false to the logout option and it works fine now thank you …
but it accrued a bad user experience for the login i use loginWithPopup for it but now it shows a white dialog without for 1 sec and redirect to the home page can you explain it please why this happend