Personal Access Tokens Expiry

Hello. I am not sure if this has been asked before. I was able to successfully implement a PAT in my project and I was therefore wondering if these tokens have an expiry date? How long are they valid for? Any help will be appreciated, thanks.

1 Like

You can probably use it until you decide not to: whats the lifetime of Github OAuth API access token - Stack Overflow

2 Likes

Thanks Logan cheers!

2 Likes

Just note that if you don’t use it for a long time it will expire:

As a security precaution, GitHub automatically removes personal access tokens that haven’t been used in a year.

(Quoted from docs: Creating a personal access token)

2 Likes

Thank you for the tip!

2 Likes