home-assistant / home-assistant/iOS
Login attempt or request with invalid authentication and Disconnected: Did not receive auth message within 10 seconds when use ios app over wireguard vpn
- Dominant language
- Swift
- Stars
- 2.4k
- Forks
- 520
- Avg merge
- 7h 27m
- Merged PRs (30d)
- 264
Description
**iOS device model, version and app version**
Model Name: iPhone 15
Software Version: 18.0.1
App version: 2024.9.4(2024.905)
**Home Assistant Core Version**
Home Assistant Core Version: 2024.10.3
Home Assistant Supervisor Version: 2024.10.2
**Describe the bug**
At first, I thought that was my wireguard vpn's problem.
because when I use the URL which from my nginx,the remote connect works well both chrome and app;
When I use the wireguard to connect with my local network(that can let me use local ip to open my router page and other service page and works well), can use the chrome to open ha login page and submit my account to login, but then it jumps to this issue's page such as: "loading data failed, retry...", and open the app it go through this issue's page.
Before today I just thought that is because the wireguard connect has no webSocket, but today, I use my laptop chrome to open the ha page over the wireguard, it works fine! It can open the page, can login well and can turns to the homepage correctly!
So now I think this is the problem with IOS?
**Screenshots**

**Additional context**
Here is my log in the ha server:
(192.168.50.1 is my router ip which run the wireguard service)
(The laptop remote works well has no warning or error log)
This is login log
```
Login attempt or request with invalid authentication from 192.168.50.1 (192.168.50.1). Requested URL: '/auth/token'. (Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/130.0.6723.37 Mobile/15E148 Safari/604.1)
```
This is the loading data page log
```
[139706346725024] from 192.168.50.1 (Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/130.0.6723.37 Mobile/15E148 Safari/604.1): Disconnected: Did not receive auth message within 10 seconds
```
Contributor guide
Assessment
This issue has not been assessed yet.