I have several micro-frontend’s running under the same domain, that use auth0 universal login (auth0-spa-js package) and they all work fine, recognizing each others session.
Now, I’m making a new one that requires an in-house login page with email and password, therefore it uses a different package (auth0-js) for it’s Embedded login flow.
Both logins work perfectly separately, however they behave differently in these scenarios
- Login on the new microfrontend (auth0-js package), checkSession is ok
- Go to different microfrontend that uses auth0-spa-js and checkSession is still ok
- Login on older microfrontend using universal login (auth0-spa-js)
- Go to the new microfrontend (auth0-js package), checkSession fails with code
Is there any way I can fix this without having both libraries auth0-spa-js and auth0-js on the new microfrontend?
Some more context:
I had 2 different applications on auth0, one for the universal flow and another one for the embedded one but now I use only one for everything and it still doesn’t work.
I also have custom domains enable on auth0.