Skip to content

Instantly share code, notes, and snippets.

@WahyuS002
Last active March 5, 2024 01:29
Show Gist options
  • Save WahyuS002/7eb1f279707cf5893e729a9669410a9e to your computer and use it in GitHub Desktop.
Save WahyuS002/7eb1f279707cf5893e729a9669410a9e to your computer and use it in GitHub Desktop.
OAuth credentials resources

GitHub

Follow this link to create a new app filling the following required details on creation:

Homepage URL: http://localhost:3000
Authorization callback URL: http://localhost:3000/api/auth/callback/github

Once completed, you will be redirected to the application page settings, from there create the client secret by clicking on Generate a new client secret button.

Next, copy the client secret generated and the client ID into the .env file,

replacing <client_id> and <client_secret>, respectively:

GITHUB_ID=<client_id>
GITHUB_SECRET=<client_secret>

Google

Follow this link to create a new project on Google Developer Console.

📝 Note: If you've already have project on your Google Developer Console, you could skip the first step above

Create your oauth-client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment