fix(curriculum): correct GitHub capitalization (#60271)

This commit is contained in:
Chase Knowlden
2025-05-12 05:44:57 -04:00
committed by GitHub
parent cbd906453f
commit d868500110
4 changed files with 4 additions and 4 deletions
@@ -8,7 +8,7 @@ dashedName: implementation-of-social-authentication-ii
# --description--
The last part of setting up your GitHub authentication is to create the strategy itself. `passport-github@~1.1.0` has already been added as a dependency, so require it in your `auth.js` file as `GithubStrategy` like this: `const GitHubStrategy = require('passport-github').Strategy;`. Do not forget to require and configure `dotenv` to use your environment variables.
The last part of setting up your GitHub authentication is to create the strategy itself. `passport-github@~1.1.0` has already been added as a dependency, so require it in your `auth.js` file as `GitHubStrategy` like this: `const GitHubStrategy = require('passport-github').Strategy;`. Do not forget to require and configure `dotenv` to use your environment variables.
To set up the GitHub strategy, you have to tell Passport to use an instantiated `GitHubStrategy`, which accepts 2 arguments: an object (containing `clientID`, `clientSecret`, and `callbackURL`) and a function to be called when a user is successfully authenticated, which will determine if the user is new and what fields to save initially in the user's database object. This is common across many strategies, but some may require more information as outlined in that specific strategy's GitHub README. For example, Google requires a *scope* as well which determines what kind of information your request is asking to be returned and asks the user to approve such access.
@@ -102,7 +102,7 @@ The lecture lists several cloud-based options, but one popular editor is primari
---
Github Codespaces
GitHub Codespaces
### --feedback--
@@ -22,7 +22,7 @@ _Error Lens_ will help you catch any highlighted errors in your code. Rather tha
_Indent Rainbow_ adds color to your different levels of indentation. In combination with VS Code's native bracket pair colorization, this can dramatically help identify what scope your code is in.
Or maybe you're looking for something a bit more practical? Consider an AI assistant, like _Github Copilot_ or _Tabnine_, to offer you inline suggestions as you are writing your code.
Or maybe you're looking for something a bit more practical? Consider an AI assistant, like _GitHub Copilot_ or _Tabnine_, to offer you inline suggestions as you are writing your code.
An icon pack, such as _VS Code Great Icons_, can help make your file tree cleaner and easier to parse at a glance. And an extension like _Colorize_ can help you understand the values in your CSS properties.
@@ -139,7 +139,7 @@ Microsoft Edge.
---
Github
GitHub
#### --answer--