Add WebAuthn support for admin login and kiosk mode

This commit is contained in:
2026-07-26 21:12:59 +02:00
parent 3c8d9297d7
commit 2b85152bb9
13 changed files with 466 additions and 9 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { jwtVerify } from "jose";
const SESSION_COOKIE = "moped_session";
const PUBLIC_PATHS = ["/login"];
const PUBLIC_PATHS = ["/login", "/kiosk"];
async function hasValidSession(request: NextRequest): Promise<boolean> {
const token = request.cookies.get(SESSION_COOKIE)?.value;