I have 2 websites:
- main.service.com that has the login and is implemented in Flask with server-side template rendering
- b.service.com that is React SPA with NO login functionality, service is available if and only if user’s logged in at main.service.com
I currently have 2 applications, one for each domain, in the same tenant, thereby having the same user database.
I noticed a desync between the logged in users when I try logging in and out with a number of accounts a couple of times
I have a feeling that I’ve been doing this wrong the whole time.
If only 1 application is required:
- Should it be regular web applications or single page applications?
- What additional settings should I set so that the original login doesn’t break?