You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm making a proof of concept using qiankun currently.
I was wondering if there was a way to get route protection in there?
Scenario
I want a login page to be there if the user is not logged in. If the user is not logged in he should not be able to access any routes (micro frontends).
But if he is, his token will be stored in the session storage and routed to the home page of the micro frontend.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm making a proof of concept using qiankun currently.
I was wondering if there was a way to get route protection in there?
Scenario
I want a login page to be there if the user is not logged in. If the user is not logged in he should not be able to access any routes (micro frontends).
But if he is, his token will be stored in the session storage and routed to the home page of the micro frontend.
An example of this behaviour can be seen here: https://single-spa-with-npm-packages.herokuapp.com/login
This example is built using single-spa.
If this is possible, how would I go about setting this up?
Beta Was this translation helpful? Give feedback.
All reactions