GitHub tokens

In order to acquire a GitHub token, log in to your GitHub account and go to the Accounts section of your Settings page. Here you will need to enter your password. Now click on Create new token, and name the token, if you prefer. Click on the copy to clipboard button in order to copy the token into the following login file.

Let's create a login file—./test/login.js—with the data from GitHub. We will use this in order to call the GitHub API; this will be removed in a later chapter.

module.exports = {
  user : '#USER#'
  token : '#TOKEN#'
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.25.67