Skip to content

Return useful error if TS auth token has expired#162

Merged
Rifdhan merged 1 commit into
mainfrom
ts-token-expiry-error
Jun 10, 2026
Merged

Return useful error if TS auth token has expired#162
Rifdhan merged 1 commit into
mainfrom
ts-token-expiry-error

Conversation

@Rifdhan

@Rifdhan Rifdhan commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator
  • Prompt the agent or user to reauthenticate to generate a new TS auth token in such cases
  • Add test coverage

- Prompt the agent or user to reauthenticate to generate a new
  TS auth token in such cases
- Add test coverage

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request introduces error handling for expired authentication when creating an agent conversation. Specifically, in mcp-server.ts, a try-catch block is added around createAgentConversation to catch 401 status errors and return a user-friendly error response prompting the user to reauthenticate. A corresponding unit test has been added in mcp-server.spec.ts to verify this behavior. No review comments were provided, so there is no additional feedback to address.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@Rifdhan Rifdhan merged commit d672649 into main Jun 10, 2026
4 checks passed
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