GitHub Access Token expires itself. #50381
Replies: 2 comments
-
Access tokens generated by GitHub have a default expiration time of one hour, regardless of whether or not you have set them to expire. This is a security measure to ensure that if a token is compromised, it will only be usable for a limited time. If you need your token to have a longer lifespan, you can request a token with a longer expiration time by specifying the desired expiration time when you generate the token. The maximum expiration time you can specify is 1 year. Alternatively, you can use OAuth to authenticate with GitHub, which allows you to generate a long-lived access token that can be refreshed without requiring user intervention. In any case, it's always a good practice to regularly rotate your access tokens to minimize the risk of them being compromised. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
My GitHub Access Token expires itself although I've set it not to expire.
I used it with OctoKit.swift
Beta Was this translation helpful? Give feedback.
All reactions