.env file.
GitHub Authorization
To enable GitHub login, you need to create an OAuth App in GitHub.A normal application will work, but it requires permission to access the user’s email.
- Go to Settings > Developer settings > OAuth Apps on GitHub.
- Click New OAuth App.
- Fill in the details:
- Application Name: UptimeKit (or your preferred name)
- Homepage URL:
http://localhost:3000(or your production URL) - Authorization callback URL:
http://localhost:3000/api/auth/callback/github
- Register the application.
- Generate a Client Secret.
.env file:
Discord Authorization
To enable Discord login, create an application in the Discord Developer Portal.- Go to the Discord Developer Portal.
- Click New Application.
- Go to the OAuth2 tab.
- Under Redirects, add:
http://localhost:3000/api/auth/callback/discord - Save changes.
- Copy the Client ID.
- Reset and copy the Client Secret.
.env file:
Summary of Configuration
Ensure your main.env file contains the relevant variables for the providers you wish to enable: