Skip to content

Instantly share code, notes, and snippets.

@ebicoglu
Created April 18, 2022 21:08
Show Gist options
  • Save ebicoglu/108038573d4a50abef38250aba7bd938 to your computer and use it in GitHub Desktop.
Save ebicoglu/108038573d4a50abef38250aba7bd938 to your computer and use it in GitHub Desktop.
How to check if a GitHub Personal Access Token is valid
@ZSendokame
Copy link

Hi! I found the Token on the events API (at https://api.github.com/events), I don't know if it's saved by GitHub, but it disappeared after some time
The API logs every event made by people (Pull requests, push, etc.), it saves the data of every event, including the e-mail that Git uses to push code
So while seeing the JSON, I found the token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment