Creating a fine-grained token with an expiration of approximately a year or more fails silently #213790
Replies: 2 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
That is the 1 year limit for fine-grained tokens. GitHub only lets a fine-grained token last up to 365 days, so a date a year or more out is not valid. When you type it in by hand it slips past the calendar, and then the generate step just stalls.
If you need it to last longer than that, pick No expiration instead and store it somewhere safe. Let me know if it works. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
API
Body
To reproduce:
Generate New token.
Add a token name; For example, test235256234
Click on date selector widget associated with "Expiration".
There seems to be some sort of hard limit for how long a finite token life time can be. Selecting the "calendar" icon next to the date picker associated with the "Select Date" prompt shows this:
Note that in the example, all dates after November 22 2026 are greyed out and unselectable. However, selecting the final selectable date (e.g. November 22 2026 in the example), and then select "Generate Token" will then show a correct dialog listing the expiration date as expected, and then generate a token:
Generating a token without an expiration date, works as expect. It's the case where the expiration date is approximately a year or more in the future that generates the issue:
All reactions