chore: simplify next-auth (#80)

This commit is contained in:
Balázs Orbán 2023-06-27 20:03:01 +02:00 committed by GitHub
parent 5912336152
commit 012ea40414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 55 additions and 116 deletions

View file

@ -2,17 +2,15 @@
## 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
NEXTAUTH_SECRET=XXXXXXXX
## Only required for localhost
NEXTAUTH_URL=http://localhost:3000
## 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
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
# instructions to create kv database here: https://vercel.com/docs/storage/vercel-kv/quickstart and
# Instructions to create kv database here: https://vercel.com/docs/storage/vercel-kv/quickstart and
KV_URL=XXXXXXXX
KV_REST_API_URL=XXXXXXXX
KV_REST_API_TOKEN=XXXXXXXX