Files
afrov2/app/api/auth/csrf/route.ts
streaper2 9c003d1b7d
All checks were successful
Build and Push App / build (push) Successful in 5m59s
feat: implement full authentication system with CSRF protection and email verification flow
2026-04-30 23:46:34 +02:00

8 lines
222 B
TypeScript

import { NextResponse } from 'next/server';
import { generateCsrfToken } from '@/lib/csrf';
export async function GET() {
const token = await generateCsrfToken();
return NextResponse.json({ csrfToken: token });
}