How to Generate Personal Access Tokens in GitHub
What are personal access tokens?
Personal access tokens are tokens that can be used to authenticate in lieu of a passphrase. They are often used on the command line or in applications with certain restrictions on authentication, and with GitHub specifically, they can be used instead of the passphrase when 2FA is enabled (which it should be). Personal access tokens provide extra security and convenience because they can be easily revoked without shutting down access to your account. Also, GitHub automatically removes unused access tokens after a year to help keep your account more secure.
In this guide, we'll learn how to generate personal access tokens in GitHub's web UI.