don’t know if I really understand what you are trying to achieve. I never tried to sync login state between a web app and a browser extension. I’m using the “loginwithpopup” function. Theoretically, it should be possible to sync the login state between the extension and web-app via the localstorage, but I never tried it out.
Furthermore, I’m using this library: ‘@auth0/auth0-spa-js’