mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 08:03:15 +00:00
fix: Better naming for NEXT_PUBLIC_GITHUB_APP_CLIENT_ID (#427)
This commit is contained in:
parent
d2e981e219
commit
dc6e6b8625
5 changed files with 6 additions and 6 deletions
|
|
@ -58,7 +58,7 @@ Before starting, ensure you have the following installed:
|
|||
|
||||
```bash Environment Variables [expandable]
|
||||
# GitHub App OAuth settings (will be filled after creating GitHub App)
|
||||
NEXT_PUBLIC_GITHUB_APP_ID=""
|
||||
NEXT_PUBLIC_GITHUB_APP_CLIENT_ID=""
|
||||
GITHUB_APP_CLIENT_SECRET=""
|
||||
GITHUB_APP_REDIRECT_URI="http://localhost:3000/api/auth/github/callback"
|
||||
|
||||
|
|
@ -189,7 +189,7 @@ Before starting, ensure you have the following installed:
|
|||
|
||||
- **GITHUB_APP_NAME**: The name you chose
|
||||
- **GITHUB_APP_ID**: Found in the "About" section (e.g., `12345678`)
|
||||
- **NEXT_PUBLIC_GITHUB_APP_ID**: Found in the "About" section
|
||||
- **NEXT_PUBLIC_GITHUB_APP_CLIENT_ID**: Found in the "About" section
|
||||
- **GITHUB_APP_CLIENT_SECRET**:
|
||||
1. Scroll to "Client secrets" section
|
||||
2. Click "Generate new client secret"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# ------------------Github App Secrets-----------------
|
||||
# GitHub app client secrets. Used for the GitHub OAuth login flow.
|
||||
NEXT_PUBLIC_GITHUB_APP_ID=""
|
||||
NEXT_PUBLIC_GITHUB_APP_CLIENT_ID=""
|
||||
GITHUB_APP_CLIENT_SECRET=""
|
||||
# Should be updated to your production URL when deployed.
|
||||
# This value should match the redirect URL you have configured in
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export async function GET(request: NextRequest) {
|
|||
);
|
||||
}
|
||||
|
||||
const clientId = process.env.NEXT_PUBLIC_GITHUB_APP_ID;
|
||||
const clientId = process.env.NEXT_PUBLIC_GITHUB_APP_CLIENT_ID;
|
||||
const clientSecret = process.env.GITHUB_APP_CLIENT_SECRET;
|
||||
const redirectUri = process.env.GITHUB_APP_REDIRECT_URI;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { NextRequest, NextResponse } from "next/server";
|
|||
|
||||
export async function GET(_request: NextRequest) {
|
||||
try {
|
||||
const clientId = process.env.NEXT_PUBLIC_GITHUB_APP_ID;
|
||||
const clientId = process.env.NEXT_PUBLIC_GITHUB_APP_CLIENT_ID;
|
||||
const redirectUri = process.env.GITHUB_APP_REDIRECT_URI;
|
||||
|
||||
if (!clientId || !redirectUri) {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export function GitHubManager() {
|
|||
};
|
||||
|
||||
const handleManageOnGitHub = () => {
|
||||
const appId = process.env.NEXT_PUBLIC_GITHUB_APP_ID;
|
||||
const appId = process.env.NEXT_PUBLIC_GITHUB_APP_CLIENT_ID;
|
||||
const fallbackInstallationsUrl =
|
||||
"https://github.com/settings/installations";
|
||||
const applicationUrl = appId
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue