Replace Basic-auth login with an API token set in Settings
Some checks failed
Build & Release APK / build (push) Has been cancelled
Some checks failed
Build & Release APK / build (push) Has been cancelled
The app no longer shows a login screen. It opens straight to the Today screen, which shows nothing until a bearer API token is saved in the new Settings screen. The token is verified against health-meta.json before it is stored in the keychain, and can be removed from the same screen. Server side: health-auth accepts Authorization: Bearer <HEALTH_APP_TOKEN> (read + write for the Fitbit sync, but not admin-only /life/* paths). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@ Cross-platform (iOS + Android) Expo app — native front end for the private
|
||||
health dashboard at **https://health.rehbock.xyz**.
|
||||
|
||||
The app is a pure client: all data lives on the server and is fetched live over
|
||||
HTTPS with HTTP Basic auth. Nothing is stored on the device except the auth
|
||||
HTTPS with a bearer API token. Nothing is stored on the device except the auth
|
||||
token (in the platform keychain via `expo-secure-store`).
|
||||
|
||||
## Screens
|
||||
@@ -30,7 +30,10 @@ npm install
|
||||
npx expo start # scan the QR with Expo Go (iOS or Android)
|
||||
```
|
||||
|
||||
Log in with the same Basic-auth credentials as the website.
|
||||
There is no login screen. Open **Settings** (⚙️ on the Today screen) and paste the API token;
|
||||
without one the app has no data. The server accepts it via `HEALTH_APP_TOKEN` in
|
||||
`health-auth` (`~/personal/health-auth/.env` on the VPS, passed through `docker-compose.yml`).
|
||||
Rotate it by changing that value and running `docker compose up -d`.
|
||||
|
||||
## Android release APK
|
||||
|
||||
|
||||
Reference in New Issue
Block a user