fix: PIN -> getPin() in auth check endpoint
Some checks failed
Deploy / deploy (push) Failing after 1m5s
Some checks failed
Deploy / deploy (push) Failing after 1m5s
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user