Skip to content

Pairing screen #5

Closed
Closed

Description

@mikahatdichlieb

Compose screen for first-time setup:

  • Server URL (https only).
  • Pairing code, sent exactly as typed.
  • Device name, prefilled with Build.MODEL and editable. It must be 1-64 characters after trimming. Settings.Global DEVICE_NAME is not used, because it often contains the student's real name.
  • Error handling by code: invalid_pairing_code, device_limit_reached (the code is not consumed), invalid_device_name, rate_limited (Retry-After).
  • On success, the token is stored through the encrypted token storage exactly once.
  • The pairing code and token are never logged.

Depends on the API client and the token storage issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions