Let's say I have multiple Angular/React/Vue applications which I want to enable users to log in once and be able to access all my applications. What I want to solve / ask about is where should I keep my login logic and UI? thanks
Should I create a separate project just to keep all my login logic and UI?
Yes: Redirection and testing will be more complicated if I do that. If I want to test application A on localhost, I have to run SSO project and application A at the same time?
No: However, if I have login logic and UI in each project, there will be a lot of repeated code and ui. It would be hard to modify and maintain.
EDIT - to clarify my questions: Is it good to have a separate project for just login to enable SSO? If it is good, how to make the development and testing process for SSO easier? If it is not recommended, what should I do to reuse the same login code for multiple related projects?