Add Social Authentication

Create a GitHub OAuth App

In this app, we will use GitHub as the social login provider. So, we need to create a GitHub OAuth app and get some credentials.

Here's how to do it:

Play Now

When you are doing that, GitHub will ask a value for the "Authorization callback URL". Use this for that:


Then create a file called .env.local in your app and add the following content:

GITHUB_CLIENT_ID=<enter GitHub app's client id>
GITHUB_CLIENT_SECRET=<enter GitHub app's client secret>

Let me ask you a question:

Q: What's the purpose of the `Authorization Callback URL`?

šŸ™ We need your help

We need your help to keep maintain & add new content to this course. Here's how you can support us: