Skip to content

Invalid redirect URI when autocompleting the 2FA code using the remote address in Safari on iOS #28807

@revolter

Description

@revolter

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

I think that there might be an edge case bug due to some weirdness of Safari.

I observed that, when I use the remote address to log in, and I autocomplete the 2FA code, I get an Invalid redirect URI error due to being redirected to https://m9<...>6o.ui.nabu.casa/auth/authorize?.

But if I first close the keyboard, then open it again (by focusing the 2FA code field), and then autocomplete it, everything works as expected.

I tried to test it with http://homeassistant.local:8123 as well, but for some reason, autocomplete is not enabled for it, even though I have this website added in the password manager.

Describe the behavior you expected

Being able to successfully log in.

Steps to reproduce the issue

  1. Open the remote address (the one that looks like https://m9<...>6o.ui.nabu.casa) in Safari on iOS.
  2. Autocomplete de credentials and the 2FA code.

What version of Home Assistant Core has the issue?

2025.12.5

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue?

Safari 26.2

Which operating system are you using to run this browser?

iOS 26.2

State of relevant entities

Problem-relevant frontend configuration

JavaScript errors shown in your browser console/inspector

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions