whats the lifetime of Github OAuth API access token

允我心安 提交于 2019-12-31 11:01:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!