From b704cc5a843b7e221589223d76cc1f358bac72dd Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Sun, 7 Dec 2025 17:11:56 +0100 Subject: [PATCH] chore: clean up .dockerignore and standardize formatting in auth.ts for improved readability --- .dockerignore | 2 ++ lib/auth.ts | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index c5a1bd2..389ba10 100644 --- a/.dockerignore +++ b/.dockerignore @@ -17,3 +17,5 @@ README.md + + diff --git a/lib/auth.ts b/lib/auth.ts index 845a556..0cf8edf 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -12,13 +12,13 @@ if (process.env.NODE_ENV === "development") { "🔐 NextAuth secret:", process.env.NEXTAUTH_SECRET ? "✅ Loaded from .env.local" - : "⚠️ Using fallback" + : "⚠️ Using fallback", ); } if (!process.env.NEXTAUTH_SECRET && process.env.NODE_ENV === "production") { throw new Error( - "NEXTAUTH_SECRET is required in production. Please set it in your environment variables." + "NEXTAUTH_SECRET is required in production. Please set it in your environment variables.", ); } @@ -36,7 +36,7 @@ export const authOptions: NextAuthOptions = { } const isValid = await authService.verifyPassword( - credentials.password + credentials.password, ); if (!isValid) { return null;