iOS hassapp and companion app can't login

am able to login through the browser on my iphone (and PC) using the nabu casa address, and the .local:8123 address. When i try to use the Homeassitant companion app i keep getting
" Failed to Connect

Response status code was unacceptable: 500.

Error Code:
Alamofire.AFError9"

and on the HASSapp

“Error: invalid client id or redirect uri”

I have tried both the local.8123 and the nabu casa address’. othe work from the phone browsers and my computer. I also made sure i wasn’t on VPN.

Anyone have any suggestions?

Thanks