Hi, I have an Angular app which creates some custom elements from components using Angular Elements, which are used in a different app that runs on a different framework.
The reason for this is, is because we want to migrate to Angular. However, some API calls are done in the Angular components. The API is authorized and requires a JWT Bearer.
Now I have the question, what is a good way on developing the Angular app and accessing these protected endpoints, and how would I implement the custom elements to work in the main app (taking the auth in mind)??
I cannot really find anything useful of this on google. Or im bad at searching :L
PS: In the main app, the token is stored in session storage after logging in. I think I can access this in Angular and use it in every http call? But its inaccessible this way when developing the angular app..