Skip to content

Commit

Permalink
upd thirtparty
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangShuuu committed Nov 16, 2023
1 parent 971a856 commit ad63600
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
DATABASE_URL=

# https://uploadthing.com/
UPLOADTHING_SECRET=
UPLOADTHING_APP_ID=

# https://app.pinecone.io/organizations/-NijBscbfRwV4V0URFzy/projects/gcp-starter:5d72bfc/indexes
PINECONE_API_KEY=
# https://platform.openai.com/api-keys
OPENAI_API_KEY=

# https://dashboard.stripe.com/test/apikeys
# https://stripe.com/docs/testing
STRIPE_PRODUCT_ID=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=

GITHUB_ID=
GITHUB_SECRET=
THIRT_GITHUB_ID=
THIRT_GITHUB_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

BASE_URL=
NEXTAUTH_URL=
# https://next-auth.js.org/adapters
NEXTAUTH_SECRET=
NEXTAUTH_URL=
NEXT_PUBLIC_BASE_URL=
3 changes: 3 additions & 0 deletions src/pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export const authOptions: AuthOptions = {
throw new Error('Invalid credentials')
}

console.log('ENV_TEST_GIT', process.env.THIRT_GITHUB_ID)
console.log('ENV_TEST_GOOGLE', process.env.GOOGLE_CLIENT_ID)

const user = await db.user.findUnique({
where: {
email: credentials.email
Expand Down

0 comments on commit ad63600

Please sign in to comment.