From 89382bef958c5d61ee2ccf38821be0d28f758138 Mon Sep 17 00:00:00 2001 From: Cosmo Date: Wed, 22 Apr 2026 19:56:58 +0000 Subject: [PATCH] fix: PIN -> getPin() in auth check endpoint --- app/api/auth/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/auth/route.ts b/app/api/auth/route.ts index 4f6f50a..b10d284 100644 --- a/app/api/auth/route.ts +++ b/app/api/auth/route.ts @@ -31,7 +31,7 @@ export async function GET(req: Request) { const cookieHeader = req.headers.get('cookie') || '' const match = cookieHeader.match(/auth_token=([^;]+)/) const token = match ? match[1] : null - const expected = makeToken(PIN) + const expected = makeToken(getPin()) return NextResponse.json({ authenticated: token === expected }) }