We have a web application with Rich Client Architecture. We use React for our client side and Java/Spring for our back-end.
Now the question is should login page be a part of our react program or not? As I know, if we do so, the downsides are:
- The UI is not protected and everyone, even those without any access, can download the whole UI app.
- Everyone, even without access must download the whole UI application before logging in.
And the upsides are:
- The page need not to be refreshed when someone logeed in.
- Front-end and back-end parts can be totally separated without any shared sessions.
In most known apps such as gmail, slack, etc. the rich client app (angular, react, etc.) is just after logging in and I just don't know any application with the first approach.