sorry for the late reply…
Check this out: https://www.home-assistant.io/docs/authentication/providers/#configuring-auth-providers
Trying one of the options might solve your problem (even switching back and forth between them)…
For me, first switching to “legacy_api_password” fixed my problem, after which a switch back to “homeassistant” continued to work… Probably some kind of cookie-problem…