From d2490123590a6575aed829b69c4acd62d05aa33f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Wed, 28 Jun 2023 13:21:08 +0100 Subject: [PATCH 1/4] Update .env.example --- .env.example | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index a703b10..12e8bd3 100644 --- a/.env.example +++ b/.env.example @@ -1,13 +1,13 @@ -## You must first activate a Billing Account here: https://platform.openai.com/account/billing/overview -## Then get your OpenAI API Key here: https://platform.openai.com/account/api-keys +# You must first activate a Billing Account here: https://platform.openai.com/account/billing/overview +# Then get your OpenAI API Key here: https://platform.openai.com/account/api-keys OPENAI_API_KEY=XXXXXXXX -## Generate a random secret: https://generate-secret.vercel.app/32 or `openssl rand -base64 32` +# Generate a random secret: https://generate-secret.vercel.app/32 or `openssl rand -base64 32` AUTH_SECRET=XXXXXXXX -## Create a GitHub OAuth app here: https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app +# Create a GitHub OAuth app here: https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app AUTH_GITHUB_ID=XXXXXXXX AUTH_GITHUB_SECRET=XXXXXXXX -## Support OAuth login on preview deployments, see: https://authjs.dev/guides/basics/deployment#securing-a-preview-deployment +# Support OAuth login on preview deployments, see: https://authjs.dev/guides/basics/deployment#securing-a-preview-deployment AUTH_REDIRECT_PROXY_URL=https://auth.example.com/api/auth # Instructions to create kv database here: https://vercel.com/docs/storage/vercel-kv/quickstart and From fbcfaa08154d886b2806c4b34b3e51787c52103b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Wed, 28 Jun 2023 13:25:23 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1105e31..59bd436 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ - [Radix UI](https://radix-ui.com) for headless component primitives - Icons from [Phosphor Icons](https://phosphoricons.com) - Chat History, rate limiting, and session storage with [Vercel KV](https://vercel.com/storage/kv) -- [Next Auth](https://github.com/nextauthjs/next-auth) for authentication +- [NextAuth.js](https://github.com/nextauthjs/next-auth) for authentication ## Model Providers From 14b03751d775b085a87d8779702f2cd344c285e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Wed, 28 Jun 2023 13:27:33 +0100 Subject: [PATCH 3/4] Update .env.example --- .env.example | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 12e8bd3..9c14cdd 100644 --- a/.env.example +++ b/.env.example @@ -8,7 +8,8 @@ AUTH_SECRET=XXXXXXXX AUTH_GITHUB_ID=XXXXXXXX AUTH_GITHUB_SECRET=XXXXXXXX # Support OAuth login on preview deployments, see: https://authjs.dev/guides/basics/deployment#securing-a-preview-deployment -AUTH_REDIRECT_PROXY_URL=https://auth.example.com/api/auth +# Set the following only when deployed. We recommend using a different OAuth app for development/production. +# AUTH_REDIRECT_PROXY_URL=https://auth.example.com/api/auth # Instructions to create kv database here: https://vercel.com/docs/storage/vercel-kv/quickstart and KV_URL=XXXXXXXX From 1929eba0a1f77bc0601d8cb138c6adf5a39d37fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Wed, 28 Jun 2023 13:30:17 +0100 Subject: [PATCH 4/4] Update .env.example --- .env.example | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 9c14cdd..b98ddb8 100644 --- a/.env.example +++ b/.env.example @@ -4,7 +4,8 @@ OPENAI_API_KEY=XXXXXXXX # Generate a random secret: https://generate-secret.vercel.app/32 or `openssl rand -base64 32` AUTH_SECRET=XXXXXXXX -# Create a GitHub OAuth app here: https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app +# Create a GitHub OAuth app here: https://github.com/settings/applications/new +# Authorization callback URL: https://authjs.dev/reference/core/providers_github#callback-url AUTH_GITHUB_ID=XXXXXXXX AUTH_GITHUB_SECRET=XXXXXXXX # Support OAuth login on preview deployments, see: https://authjs.dev/guides/basics/deployment#securing-a-preview-deployment