fix: PIN -> getPin() in auth check endpoint
Some checks failed
Deploy / deploy (push) Failing after 1m5s

This commit is contained in:
Cosmo
2026-04-22 19:56:58 +00:00
parent 690db4c6cf
commit 89382bef95

View File

@@ -31,7 +31,7 @@ export async function GET(req: Request) {
const cookieHeader = req.headers.get('cookie') || '' const cookieHeader = req.headers.get('cookie') || ''
const match = cookieHeader.match(/auth_token=([^;]+)/) const match = cookieHeader.match(/auth_token=([^;]+)/)
const token = match ? match[1] : null const token = match ? match[1] : null
const expected = makeToken(PIN) const expected = makeToken(getPin())
return NextResponse.json({ authenticated: token === expected }) return NextResponse.json({ authenticated: token === expected })
} }