Skip to content

Ensure that the JWT token is not expired before it attempts to use the token.#23

Merged
travist merged 1 commit into
mainfrom
check-token-expire
Jun 23, 2026
Merged

Ensure that the JWT token is not expired before it attempts to use the token.#23
travist merged 1 commit into
mainfrom
check-token-expire

Conversation

@travist

@travist travist commented Jun 23, 2026

Copy link
Copy Markdown
Member

I ran into an issue where I changed the deployment url for the MCP server. When I did this, it found an old cached JWT token (that was expired) and attempted to use that token. What proceeded was about 5 minutes of thrashing from the AI to try and figure out what was wrong with all the subsequent requests that failed with 400's. This change ensures that if a token is pulled from cache, that it will first check to see if the token is expired. If so, then it will immediately reject that token and fetch a new one through the auth process.

@travist travist merged commit 4237e6c into main Jun 23, 2026
1 check passed

@blakekrammes blakekrammes 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.

I tested out the JWT expire–>re-auth flow locally and it works well. Approved!

@blakekrammes blakekrammes 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.

I tested out the expired JWT/re-auth flow locally and it works well. Approved!

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.

3 participants