Skip to content

feat: live API wiring + AuthTokens fix - #10

Merged
jobinlawrance merged 1 commit into
developfrom
feature/live-api
Jun 28, 2026
Merged

jobinlawrance merged 1 commit into
developfrom
feature/live-api

Conversation

@jobinlawrance

Copy link
Copy Markdown

Points the app at the live backend and fixes a real login bug found end-to-end on the emulator.

  • baseUrl → https://api.viewrr.stream (both platforms)
  • AuthTokens maps the API's accessToken via @SerialName — login JSON is {accessToken, refreshToken}; the app expected token and login deserialization threw Field 'token' is required
  • Verified on Android emulator: register → login → token persists → home loads against live Hub (catalog empty → SampleData dev fallback, Translations update from Hosted Weblate MakD/AFinity#101)

Both platforms green; 34 host tests pass.

- baseUrl -> https://api.viewrr.stream on both platforms (was dev localhost/10.0.2.2).
- AuthTokens.token now maps the API's accessToken via @SerialName (login returns
  {accessToken, refreshToken}; the app was looking for 'token' and login deserialization
  failed). Verified end-to-end on the Android emulator: register -> login -> token persists
  -> home loads against the live Hub (catalog empty for now -> dev SampleData fallback, MakD#101).
@jobinlawrance
jobinlawrance merged commit a66da58 into develop Jun 28, 2026
2 checks passed
@jobinlawrance
jobinlawrance deleted the feature/live-api branch June 28, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant