mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 19:45:35 +01:00
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:
parent
1c4c97e02a
commit
610ca29cb5
11 changed files with 122 additions and 55 deletions
9
src/middleware.ts
Normal file
9
src/middleware.ts
Normal 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).*)'],
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue