Login flow broken, only works after page reload
Description
We have been fighting this issue for some time, as it is a serious problem for not-so-tech-savy people, as it breaks the login flow. Here is the issue in our repository, which provides some insights into the cause of the problem. Probably related to https://github.com/apollographql/apollo-client/issues/9354.
Steps to Reproduce
- Force-reload the page or open a new private window to get a clean session.
- Login
- Notice how after logging in, you are redirected to a homepage that looks like you are not logged in
- Reload the page for it to actually reflect the fact you are logged in.
Expected behaviour:
The homepage should immediatly reflect the fact you are authenticated.
Actual behaviour:
The homepage looks like no login happened.
Reproduces how often:
Reliably in both Chrome and Firefox.
Versions
4.1.0 and current main, I also reproduced this on current https://mobilizon.fr. 4.0.2 doesn't seem to show this issue, so bisecting might be worth it?
Additional Information
The issue doesn't reproduce on sessions where you were already logged in, log out and then log in again without reloading the page before.
Edited by pots damn