Skip to content

Commit

Permalink
docs: Update 02-oauth-tutorial.mdx (nextauthjs#6408)
Browse files Browse the repository at this point in the history
Fix typos in 02-oath-tutorial.mdx
  • Loading branch information
uatemycookie22 authored Jan 16, 2023
1 parent c36834b commit d2e3b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/getting-started/02-oauth-tutorial.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,14 @@ http://localhost:3000/api/auth/callback/github
Auth.js will already magically create this API endpoint for you when we start the application later. Note that because we're using Next.js, locally it starts our server on the port `3000`, hence the origin is `http://localhost:3000`.
:::

Next you'll be presented with the following screen which presents all the configuration for your new OAuth app. For now, let's we need two things from it: the **Client ID** and **Client Secret** for our new OAuth app:
Next you'll be presented with the following screen which presents all the configuration for your new OAuth app. For now, we need two things from it: the **Client ID** and **Client Secret** for our new OAuth app:

<img src={gettingClientIdSecretImg} />

The Client ID is always there, a public identifier of your OAuth application within Github. Click on the **Generate a new client Secret** button and should be presented with a new string (which is just a randomized string).

:::warning
🔥 Keep both your Client ID and Client Secret secure and never expose them to the public or shared with people outside your organization. With tem a malicious actor could hijack your application and cause you and your user serious problems!
🔥 Keep both your Client ID and Client Secret secure and never expose them to the public or shared with people outside your organization. With them, a malicious actor could hijack your application and cause you and your user serious problems!
:::

Now let's copy both the Client ID and Client Secret and paste them in an environment file in the root of your project like so:
Expand Down

0 comments on commit d2e3b76

Please sign in to comment.