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:
Log into your GitHub account and navigate to: https://github.com/settings/developers
Select "New OAuth App"
Supply required information
- 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
- For example:
- Hit "Register application"
- Copy your Client ID and Client secret, and expose them as environment variables named
GITHUB_CLIENT_ID
andGITHUB_CLIENT_SECRET
wherever your app is running