Hi everyone,
In my organization we are trying to switch to auth0. Currently we have solution where we are using .net MVC application to load our Angular app. Basically we are displaying MVC page wchich have script tags and reference to app-root selector. We are trying to figure what will be the best way to connect those two worlds. Currently we were thinking about handling login step on .NET side, then we have to somehow pass the tokens to Angular, then angular via interceptor will pass the token with the request to the api. What is the best way to share the token between server side app and our SPA ? Is there a possibility to use oauth angular npm package to handle this or we need to manually pass the token to Angular e.g. expose some enpoint with token on mvc side, store token in local storage or something ? What should be the flow when token on mvc side expires ? Additionally I will say that this angular app is also used as microfrontend and module federation but this is another topic I think.