File size: 390 Bytes
6f0652e 14f4a5b 6f0652e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import { NextRequest } from "next/server";
import { handlers } from "@/lib/auth";
import { applyRateLimit, rateLimitPolicies } from "@/lib/rate-limit";
export async function POST(request: NextRequest) {
const limited = await applyRateLimit(request, rateLimitPolicies.login);
if (limited) {
return limited;
}
return handlers.POST(request);
}
export const GET = handlers.GET;
|