GitHub OAuth Setup

Configure GitHub authentication for White Rabbit Code Editor

1
Create GitHub OAuth App
Set up a new OAuth application in your GitHub settings
Go to GitHub Developer Settings
Click 'New OAuth App'
Fill in the application details
Copy the generated credentials
2
Configure Application Details
Use these exact values for your OAuth app configuration
Application Name
White Rabbit Code Editor (Local)
Homepage URL
http://localhost:3012
Authorization Callback URL
http://localhost:3012/api/auth/callback/github
3
Update Environment Variables
Add your GitHub OAuth credentials to the environment file
Add to .env.local:
# GitHub OAuth Configuration
GITHUB_CLIENT_ID=your_actual_client_id_here
GITHUB_CLIENT_SECRET=your_actual_client_secret_here
4
Restart Development Server
Restart the server to apply the new configuration
Run this command:
npm run dev
Need Help?
If you encounter issues during setup:
  • • Make sure the callback URL exactly matches: http://localhost:3012/api/auth/callback/github
  • • Restart the development server after updating environment variables
  • • Check the browser console for error messages
  • • Ensure your GitHub OAuth app is not suspended