From 065cfd42c09657dd2f48cd1eab516bafc5b15a74 Mon Sep 17 00:00:00 2001 From: Abhiavati20 Date: Tue, 21 Jan 2025 23:37:51 +0530 Subject: [PATCH] Added env variables which will be required for next auth configuration --- .env.example | 4 ++++ .gitignore | 2 ++ auth.config.ts | 1 + 3 files changed, 7 insertions(+) diff --git a/.env.example b/.env.example index f233427..aa785be 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,10 @@ # Get your own Dub API key: https://dub.co/docs/api-reference/tokens DUB_API_KEY= +# Next Auth Secrets +NEXTAUTH_URL= +AUTH_SECRET= + # GitHub AUTH_GITHUB_ID= AUTH_GITHUB_SECRET= diff --git a/.gitignore b/.gitignore index 14a12f6..0d922db 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,5 @@ next-env.d.ts # misc .vscode *.jsonl + +prisma/migrations \ No newline at end of file diff --git a/auth.config.ts b/auth.config.ts index 27a366c..3e0fa23 100644 --- a/auth.config.ts +++ b/auth.config.ts @@ -17,4 +17,5 @@ export default { }, }), ], + secret:process.env.AUTH_SECRET } satisfies NextAuthConfig;