Skip to content

feat(auth): lab pick list and switching (1.5.0) - #12

Merged
BackStacked merged 1 commit into
mainfrom
claude/project-thread-ovi2jd
Nov 10, 2026
Merged

BackStacked merged 1 commit into
mainfrom
claude/project-thread-ovi2jd

Conversation

@BackStacked

Copy link
Copy Markdown
Contributor

This mirrors the api's new fields for one person with accounts in several labs.

Changes

  • auth.organizations() calls query myOrganizations and returns { code, name, current }[].
  • auth.switchOrganization(orgCode) calls mutation switchOrganization with this device's signals and keeps the new tokens in the session manager. Apps should reset their cached data afterwards.
  • organizationChoices(error) returns the labs to pick from after ORG_REQUIRED (extensions.organizations). It is exported from the main and /graphql entries.
  • Types and docs. Adds the OrganizationChoice type. docs/graphql.md lists the new calls and ORG_UNAVAILABLE. llms-full.txt is regenerated.
  • Version is 1.5.0.

Depends on

The api PR that adds myOrganizations / switchOrganization. That PR relies on auth-kit 1.5.0 (mgpl-diagnostics/auth-kit#13).

Checks

  • tsc --noEmit and npm run build pass.
  • The api's suite, run against this build, passes "every query and mutation has a client operation" (myOrganizations and switchOrganization are covered).
  • The dashboard's lab picker and switcher were tested end to end against a mock of the new schema.

Generated by Claude Code

- auth.organizations() → query myOrganizations ({ code, name, current }).
- auth.switchOrganization(orgCode) → mutation switchOrganization, with this
  device's signals; keeps the new tokens in the session manager.
- organizationChoices(error): the labs to pick from after ORG_REQUIRED.
- OrganizationChoice type; docs/graphql.md lists the new calls and
  ORG_UNAVAILABLE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018jBohk4otGVRjt3Y1cF1N2
@BackStacked
BackStacked merged commit 7931533 into main Nov 10, 2026
1 check passed
@BackStacked
BackStacked deleted the claude/project-thread-ovi2jd branch November 10, 2026 07:18
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.

2 participants