I am using React (18.2) built with Vite (5.0.0) using vite-plugin-federation (1.3.5) to split up my application into a main application and several modules which are dynamically loaded once a user logs in to the application.
When logging in, the Spring-based backend generates a JWT which the main application stores in a Redux store.
In order to be able to communicate with the backend, the Axios (1.6.2) Rest-Client needs to provide the bearer token, which is stored in the Redux (2.0.1) store.
Unfortunately I am completely unable to get this last step working in my modules while it’s trivial in the main application.