This document describes how to set up a GitHub OAuth App for the Comfy Registry.
-
Fill in the following details:
- Application name:
Comfy Registry - Application description:
Comfy-Org official GitHub app to verify user's GitHub account permissions for managing and claiming nodes - Homepage URL:
https://registry.comfy.org(no trailing slash) - Authorization callback URL:
https://registry.comfy.org/api/auth/github/callback
- Application name:
-
Click "Register application"
-
After creation, you'll receive:
- Client ID - Add this to your environment variables as
GITHUB_CLIENT_ID - Client Secret - Add this to your environment variables as
GITHUB_CLIENT_SECRET
- Client ID - Add this to your environment variables as
Add the following environment variables to your .env file:
GITHUB_CLIENT_ID="your_client_id_here"
GITHUB_CLIENT_SECRET="your_client_secret_here"
For production deployment, make sure to also add these environment variables to your Vercel project settings.
For local development, you may want to create a separate OAuth app with:
- Homepage URL:
http://localhost:3000(no trailing slash) - Authorization callback URL:
http://localhost:3000/api/auth/github/callback
This ensures your local development environment doesn't interfere with the production app.