Can't setup iOS app getting error "invalid client id or redirect uri" (0.109)

I had my iOS app all set up but it wasn’t updating the status of my device and whether or not it was on Wifi so I decided to delete and start over and now I can’t get the app to connect.

The app discovers my HA install and offers to let me connect. When I do, the app opens a browser window that says “Logging in with Home Assistant Local” but then I get the error “invalid client id or redirect uri”

I also get an “login attempt failed” notice in my HA notifications panel.

I’m never given the option to login so I’m not sure what to do. Something must be cached but I’ve deleted the app on the phone so no idea what that could be.

I had the same problem.

I followed the troubleshooting at: Companion Apps

and found this error in my HA.log:

>2020-04-30 19:17:43 ERROR (MainThread) [homeassistant.components.auth.indieauth] Timeout while looking up redirect_uri https://home-assistant.io/iOS
> 2020-04-30 19:17:43 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.0.10

then I tried:
curl -v6 https://home-assistant.io/iOS/beta-auth

and was successful using the HA app on my iPad.

Wow, looks like something happen to my upstream IPv6 which is what was causing the issue. Thank you so much!