Skip to content

Fix organization ID preservation during token refresh#27

Merged
nicknisi merged 1 commit into
mainfrom
nicknisi/orgid-update-session
Jun 25, 2025
Merged

Fix organization ID preservation during token refresh#27
nicknisi merged 1 commit into
mainfrom
nicknisi/orgid-update-session

Conversation

@nicknisi

@nicknisi nicknisi commented Jun 25, 2025

Copy link
Copy Markdown
Member

Summary

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

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

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.

2 participants