Refactor to use hooks (#436)
This commit is contained in:
parent
124efca9a1
commit
cb60f8b143
139 changed files with 8871 additions and 8726 deletions
|
|
@ -1,8 +1,9 @@
|
|||
import NextAuth from 'next-auth'
|
||||
import { authConfig } from './auth.config'
|
||||
import NextAuth from "next-auth";
|
||||
|
||||
export default NextAuth(authConfig).auth
|
||||
import { authConfig } from "@/app/(auth)/auth.config";
|
||||
|
||||
export default NextAuth(authConfig).auth;
|
||||
|
||||
export const config = {
|
||||
matcher: ['/((?!api|_next/static|_next/image|.*\\.png$).*)']
|
||||
}
|
||||
matcher: ["/", "/:id", "/api/:path*", "/login", "/register"],
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue