Authenticate in GitHub and preview the final result
Get the project source code below, and follow along with the lesson material.
Download Project Source CodeTo set up the project on your local machine, please follow the directions provided in the README.md
file. If you run into any issues with running the project source code, then feel free to reach out to the author in the course's Discord channel.
This lesson preview is part of the Fullstack React with TypeScript Masterclass course and can be unlocked immediately with a single-time purchase. Already have access to this course? Log in here.
Get unlimited access to Fullstack React with TypeScript Masterclass with a single-time purchase.

[00:00 - 00:08] authenticate in GitHub and preview the final result. Authenticating in GitHub. The first thing we need to do to be able to use the GitHub API is to authent icate.
[00:09 - 00:16] To communicate with GraphQL server, we'll need the OAuth token with the right scopes. We will follow the web application flow.
[00:17 - 00:28] To enable the web application flow in our application, we need to get client ID and client secret. To do this, go to a GitHub profile, click on your avatar in the top right corner, and there click on the Settings link.
[00:29 - 00:39] On the Settings page, go to Developer Settings, select OAuth apps, and once there, click New OAuth app. Here, enter the info about your application.
[00:40 - 00:59] Choose some name, for example, GitHub, CLI, the homepage URL, HTTPS, Maxim, evenoff, dot com, some description, and the most important is authorization callback URL . It should be HTTP, localhost, 3000.
[01:00 - 01:08] Click Register application, save the client ID, and the client secret, somewhere safe. You may need to generate a new client secret here.
[01:09 - 01:14] Now let's preview the final result. The complete code example can be found in the code 06.
[01:15 - 01:20] GraphQL/completed. Open the .n file in the root and add the keys from the previous step.
[01:21 - 01:25] Client ID and client secret. Install the dependencies and launch the application.
[01:26 - 01:38] Yarn and yarn start. First time you launch the application, you will be asked to authenticate, and then you will be able to create new issues, repositories, pull requests, and view the welcome screen.