问题
what is the expiry time of github oauth access token. And also how do I renew it. I don't see any refresh token in their documentation. Please guide me. Thanks in advance.
回答1:
As commented in this "GitHub OAuth Busy Developer's Guide"
Tokens don't have to expire.
You can check an OAuth application authorization, delete it or revoke it.
But the token itself doesn't seem to be bound to an expiry date.
badsyntax adds in the comments:
I also found this useful:
"An OAuth token does not expire until the person who authorized the OAuth App revokes the token."
From "Migrating OAuth Apps to GitHub Apps".
来源:https://stackoverflow.com/questions/26902600/whats-the-lifetime-of-github-oauth-api-access-token