New auth - login not saved and credentials prompted on page reload

There seems to be a regression in 0.77.2, could be browser specific (Firefox (on linux and on android), but not sure) whereby everytime the page is reloaded, the front-end redirects back to the authentication page. This also happens every time the browser is reloaded.
It’s kind of very annoying.

There is no pop-up to “Save Login” and the .storage/auth file gets added with a new token every time, but those tokens are never ‘matched’ again apparently.

Github bug: https://github.com/home-assistant/home-assistant/issues/16347

Tried deleting .storage/auth - onboarding etc, triggered re-onboarding but that didn’t fix the problem. Even starting Firefox in private mode (i.e. no cookies or other data) runs into this problem.

Any hint on how to work around this would be great.

Note there was a thread for the opposite problem (Saved Login prompted all the time) - here - that happened on 0.77.1 but it got fixed in 0.77.2. Maybe that fix is related to this issue

1 Like

I just posted this in the 0.77 thread, I have this exact behaviour. Android FF/Chrome apps save password fine and never reprompt. My FF browser on my PC, I can’t even refresh the page without being re-promoted. ‘Trusted Network’ or user/pass both do the same thing.

I can confirm that this is NOT specific to FF as I’m having the same issue on chrome on my phone and 2 computers.

It’s driving me nuts as it now take a LOT longer to do anything through the web interface

This workaround worked for me on android firefox, it is based on the discussion in github for desktop firefox: in the browser go to Settings > Clear Private Data > and check only ‘Offline Website Data’ (to minimize the damage).
After that reload the page, you will land in the login page, but this time the ‘Save Login’ pop up should show up, accept it.
After this page reloads no longer trigger reauth.

I am guessing this WA will need to be reapplied every time HA is updated, and perhaps restarted, but at least it makes the frontend more usable in the interim :slight_smile:

I still have to try the equivalent WA on my desktop FF (the one using Developer tools)

p.s. no joy yet with Desktop Firefox. Clearing offline data, using a new container, incognito mode etc. To test: disable all addons and see what happens

Looks to be resolved in 0.77.3 for me. Thanks :slight_smile:

I’m having this issue on 0.78.2 … it might be caused by my browser settings but I would be ok with disabling this feature to avoid having to close it every time I login…

How do I disable the save-login pop-up?

I had the same issues with Chrome on Android with Home Assistant 0.82.1. Solution was to remove all files and cookies related to my domain in Chrome. It took me some time to figure out how, so I’ll explain it here.

  1. Visit your Home Assistant web page.
  2. Click the “Secured icon” in the location bar.
  3. Site settings
  4. Clear & reset

After this I entered my login using the new Auth system and it started to work permanently.