Refactor authentication flow in LoginForm and LogoutPage to use next-auth. Remove unnecessary API calls and improve form handling. Update SSOPage to eliminate client token management. Adjust useApi hook to remove client token dependency.

This commit is contained in:
Robert Hajdu 2025-08-10 14:42:33 +02:00
parent 1c4c97e02a
commit 610ca29cb5
11 changed files with 122 additions and 55 deletions

9
src/middleware.ts Normal file
View file

@ -0,0 +1,9 @@
import { NextResponse } from 'next/server';
export function middleware() {
return NextResponse.next();
}
export const config = {
matcher: ['/((?!_next/static|_next/image|favicon.ico).*)'],
};