Skip to content

fix(auth): pairing follow-ups — grant identity fields and a visible deletion blast radius - #212

Merged
johncarmack1984 merged 5 commits into
mainfrom
fix/pairing-follow-ups
Jul 19, 2026
Merged

fix(auth): pairing follow-ups — grant identity fields and a visible deletion blast radius#212
johncarmack1984 merged 5 commits into
mainfrom
fix/pairing-follow-ups

Conversation

@johncarmack1984

Copy link
Copy Markdown
Owner

Two 1.7.1 fixes out of tonight's account-deletion incident and first real device pairing:

  • Grant identity fields: /auth/device/token now returns the account's email attribute (was: Cognito username, a UUID for Apple-created accounts) and the minting client id, so paired nodes write a complete, correct session without guessing (pairs with feat(node): sessions record the app client that minted them #210).
  • GET /auth/device/list: the caller's paired-device registry — powers the app's future device list and, today, the deletion confirm.
  • Deletion blast radius: the delete-account confirm now names the email, cloud-synced setup count, and paired devices before the destructive tap.

The grant reported the Cognito username as `email` — a UUID for
Apple-created accounts, which the node would then store and log as the
account identity. Return the email attribute (username fallback), plus
the app client id that minted the refresh token so the node never has
to guess which client to refresh against. Adds GET /auth/device/list —
the account's paired-device registry, needed by the app's device list
and the delete-account confirm.
Deleting an account is very effective — today it took the founder's
with it. The confirm now names what goes: the signed-in email, the
cloud-synced setup count, and any paired lux-node devices (via the new
/auth/device/list), so 'test the deletion flow' and 'delete my real
account' stop looking identical at the moment of truth.
@johncarmack1984
johncarmack1984 merged commit 7e9c9de into main Jul 19, 2026
11 checks passed
@johncarmack1984
johncarmack1984 deleted the fix/pairing-follow-ups branch July 19, 2026 03:06
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