11 lines
302 B
TypeScript
11 lines
302 B
TypeScript
import NextAuth from 'next-auth';
|
|
import { authConfig } from '@/lib/auth.config';
|
|
|
|
export default NextAuth(authConfig).auth;
|
|
|
|
export const config = {
|
|
// Match all paths except static files and api routes that don't need auth
|
|
matcher: ['/((?!api/auth|_next/static|_next/image|favicon.ico).*)'],
|
|
};
|
|
|