11 lines
382 B
TypeScript
11 lines
382 B
TypeScript
export { auth as middleware } from "auth"
|
|
|
|
// Or like this if you need to do something here.
|
|
// export default auth((req) => {
|
|
// console.log(req.auth) // { session: { user: { ... } } }
|
|
// })
|
|
|
|
// Read more: https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher
|
|
export const config = {
|
|
matcher: ["/((?!api|_next/static|_next/image|favicon.ico).*)"],
|
|
} |