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 25b2e2a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 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=
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
echo STRIPE_PRODUCT_ID=${{ secrets.STRIPE_PRODUCT_ID }} >> .env
echo STRIPE_SECRET_KEY=${{ secrets.STRIPE_SECRET_KEY }} >> .env
echo STRIPE_WEBHOOK_SECRET=${{ secrets.STRIPE_WEBHOOK_SECRET }} >> .env
echo THIRT_GITHUB_ID=${{ secrets.GITHUB_ID }} >> .env
echo THIRT_GITHUB_SECRET=${{ secrets.GITHUB_SECRET }} >> .env
echo THIRT_GITHUB_ID=${{ secrets.THIRT_GITHUB_ID }} >> .env
echo THIRT_GITHUB_SECRET=${{ secrets.THIRT_GITHUB_SECRET }} >> .env
echo GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }} >> .env
echo GOOGLE_CLIENT_SECRET=${{ secrets.GOOGLE_CLIENT_SECRET }} >> .env
echo NEXT_PUBLIC_BASE_URL=${{ secrets.NEXT_PUBLIC_BASE_URL }} >> .env
Expand Down
6 changes: 1 addition & 5 deletions src/components/LoginModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,7 @@ export default function LoginModal() {
type="button"
variant="outline"
size="icon"
onClick={() =>
signIn('github', {
callbackUrl: `${process.env.NEXT_PUBLIC_BASE_URL}/dashboard`
})
}
onClick={() => signIn('github')}
>
<FaGithub className="h-6 w-6" />
</Button>
Expand Down

0 comments on commit 25b2e2a

Please sign in to comment.