logoalt Hacker News

Jakob • today at 6:50 AM • 1 reply • view on HN

PAT are vulnerable, once stolen they can be used from anywhere until their (usually) long term expiry.

Better use short lived tokens with auto refresh. For example OAuth tokens. They can be used for the same use cases like PAT, but they expire after a max of 2 hours.


Replies

masklinn • today at 7:15 AM

Which oauth tokens are you talking about? Because GitHub’s created by oauth or gh apps have a lifetime of either 8h or forever.

➕ show 1 reply