Skip to content

API Access Token Expiry #24808

Answered by fei0x
fei0x asked this question in API and Webhooks
Discussion options

You must be logged in to vote

Below is the answer I recieved from GitHub support. So I guess there is something on my side that I’ve missed.

GitHub’s OAuth tokens don’t expire after some specific period since they’ve been created (and refresh tokens aren’t used currently, because of that). However, there are several reasons why a valid token might become invalid:

  • the token was manually revoked by the user, either via the UI or the API
  • the token was manually revoked by the OAuth application it was created for, either via the UI or the API
  • the token was automatically revoked by GitHub because it has not been used for over a year
  • the token was automatically revoked by GitHub because it was pushed to a public repository …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant