Skip to content

Conversation

@nicknisi
Copy link
Member

@nicknisi nicknisi commented Jun 25, 2025

Summary

  • Fixes an issue where users were reverting to their default organization after token refresh
  • Preserves the current organizationId when tokens are automatically refreshed

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Implements critical fix for organization context preservation during token refresh operations in src/session.ts and its corresponding test file.

  • Added organization ID extraction and preservation logic in token refresh flow to prevent users from reverting to default organization
  • Updated src/session.ts to pass through the current organizationId during refresh token authentication
  • Added test coverage in src/session.spec.ts to verify organization context is maintained during token refresh

2 files reviewed, no comments
Edit PR Review Bot Settings | Greptile

@nicknisi nicknisi merged commit ac57ae9 into main Jun 25, 2025
6 checks passed
@nicknisi nicknisi deleted the nicknisi/orgid-update-session branch June 25, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants