Skip to content

feat: handling exp is too far in the future - #699

Merged
wolfy1339 merged 3 commits into
octokit:mainfrom
duducpp:fix/exp-is-too-far-in-the-future
Feb 3, 2026
Merged

wolfy1339 merged 3 commits into
octokit:mainfrom
duducpp:fix/exp-is-too-far-in-the-future

Conversation

@duducpp

@duducpp duducpp commented Apr 28, 2025

Copy link
Copy Markdown
Contributor

Resolves #698


Before the change?

  • In case we send a exp more than 10minutes in future github responds with a 401 error which is not handled

After the change?

  • If github responds with 'Expiration time' claim ('exp') is too far in the future' we regenerate the token using github date from response

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@github-actions

Copy link
Copy Markdown
Contributor

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@duducpp
duducpp force-pushed the fix/exp-is-too-far-in-the-future branch from b011db4 to 487b03a Compare April 28, 2025 13:28
@nickfloyd nickfloyd moved this from 🆕 Triage to 👀 In review in 🧰 Octokit Active Jun 3, 2025
@wolfy1339
wolfy1339 enabled auto-merge (squash) February 2, 2026 20:41
@wolfy1339
wolfy1339 merged commit 6201580 into octokit:main Feb 3, 2026
6 of 11 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in 🧰 Octokit Active Feb 3, 2026
@github-actions

github-actions Bot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 8.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

[BUG]: 'Expiration time' claim ('exp') is too far in the future

4 participants