Repository navigation
feat(auth): lab pick list and switching (1.5.0) - #12
Merged
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This mirrors the api's new fields for one person with accounts in several labs.
Changes
auth.organizations()calls querymyOrganizationsand returns{ code, name, current }[].auth.switchOrganization(orgCode)calls mutationswitchOrganizationwith 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 afterORG_REQUIRED(extensions.organizations). It is exported from the main and/graphqlentries.OrganizationChoicetype. docs/graphql.md lists the new calls andORG_UNAVAILABLE. llms-full.txt is regenerated.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 --noEmitandnpm run buildpass.Generated by Claude Code