Always-on rules/secure-by-default.md: hosting, a11y, Supabase RLS, SMS/email consent, cloud functions, API hygiene incl. password storage. Stdlib scanner (FAIL/WARN/MANUAL) + skill, 89-check suite, auditor gate wiring, profiles, routing row (plus Explore rows confirmed through the router dialog).
8 lines
235 B
TypeScript
8 lines
235 B
TypeScript
import { getUser } from "../../lib/auth";
|
|
|
|
export async function GET(request: Request) {
|
|
const user = await getUser(request);
|
|
if (!user) return new Response("unauthorized", { status: 401 });
|
|
return Response.json({ ok: true });
|
|
}
|