Skip to main content

GitHub Integrations

GitHub Auth

To use GitHub as an authentication method (covered here), you'll first need to create a GitHub OAuth App and provide Wasp with your client key and secret. Here is how to do so:

  1. Log into your GitHub account and navigate to: https://github.com/settings/developers

  2. Select "New OAuth App"

  3. Supply required information

    GitHub Applications Screenshot
  • For "Authorization callback URL", if you just want to test your local app, put in: http://localhost:3000/auth/login/github
  • Once you know on which URL your API server will be deployed, you can create a new app with that URL instead.
    • For example: https://someotherhost.com/auth/login/github
  1. Hit "Register application"
  2. Copy your Client ID and Client secret, and expose them as environment variables named GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET wherever your app is running