Skip to content

feat(api): a phone names its installation with its code (MobileTokenRequest, openapi 0.1.3658) - #317

Merged
nathanfallet merged 2 commits into
mainfrom
feat/mobile-device-identity
Nov 16, 2026
Merged

nathanfallet merged 2 commits into
mainfrom
feat/mobile-device-identity

Conversation

@nathanfallet

Copy link
Copy Markdown
Member

What

TeamCode's companion sends its installation id, device name and platform with its login (LoginRequest, docs/devices.md). Ostrom's phones sign in through POST /api/v1/auth/mobile/token, which ostrom-server#686 now accepts with the same four fields as DeviceLoginStart. This PR adds them to the contract:

  • MobileTokenRequest gets the optional installationId, deviceName, platform and osVersion. Their KDoc points to DeviceLimits and DevicePlatforms.
  • AuthClient.exchangeMobileCode takes the same four values, each defaulting to null as in startDeviceLogin. Calls with three arguments still compile and send only the code.
  • client/openapi.version moves to 0.1.3658 (ostrom-server Build 3658, which includes #686).

Contract

ContractTest passes against that document and ServerGaps stays empty. I checked it locally with OSTROM_OPENAPI_REQUIRED=true and the openapi-generated artifact of server#686's CI (MobileTokenRequest has the four nullable properties there).

How tested

:api and :client: detekt, jvmTest and koverVerify pass. The new test aPhoneNamesItsInstallationWithTheCode checks the exact JSON body.

The app PR that bumps core and sends the fields from the phone follows this one.

🤖 Generated with Claude Code

…equest, openapi 0.1.3658)

As TeamCode's companion sends its installation id, device name and platform
with its login (docs/devices.md), the app sends them with the code of its
browser sign-in, so that a phone is one device. ostrom-server#686 serves them
on POST /api/v1/auth/mobile/token.

- MobileTokenRequest: optional installationId, deviceName, platform and
  osVersion, the names and bounds of DeviceLoginStart.
- AuthClient.exchangeMobileCode takes them, defaulted to null, as
  startDeviceLogin does.
- client/openapi.version: 0.1.3658 (ostrom-server Build 3658, with #686).
  ContractTest passes against it; ServerGaps stays empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: NathanFallet <contact@nathanfallet.me>
@nathanfallet
nathanfallet requested a review from a team as a code owner November 16, 2026 09:01
Review of #317.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: NathanFallet <contact@nathanfallet.me>
@nathanfallet
nathanfallet merged commit b939338 into main Nov 16, 2026
4 checks passed
@nathanfallet
nathanfallet deleted the feat/mobile-device-identity branch November 16, 2026 09:07
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