Repository navigation
fix: whoami for fly users - #71
Merged
Merged
Conversation
also move fetchOrganizationsFromUserInfo from fly to client
Update tests to match removed getCredentials from provider (now getStoredCredentials on storage) and storeCredentialOrganization's new explicit target parameter. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 3537068. Configure here.
MantasMiksys
approved these changes
Apr 7, 2026
Contributor
|
🎉 This PR is included in version 2.16.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.

also move fetchOrganizationsFromUserInfo from fly to client
Note
Medium Risk
Moderate risk because it changes organization discovery/storage and how Fly SSO users are detected, which can affect login, org selection, and
whoami/org listing behavior.Overview
Fixes Fly SSO behavior by moving
fetchOrganizationsFromUserInfointoTigrisAuthClientand using it (plus a newisFlyUser()check) to list/store organizations from Auth0userinfoinstead of relying on ID token claims.Refactors auth/storage integration:
client.tsnow uses aclaimsNamespaceconfig value, storage orgs are typed as IAMOrganization, and credential org assignment is now explicit (storeCredentialOrganization(orgId, 'saved'|'temporary')) with corresponding updates toconfigure/credentials login and tests. Also updatesgetStorageConfigto includeorganizationId/iamEndpointfor configured credentials and simplifies callers likewhoamiandpresignto use storage’sgetLoginMethod/stored org list.Reviewed by Cursor Bugbot for commit 09c8c19. Bugbot is set up for automated code reviews on this repo. Configure here.