Files
campaign-site/middleware.ts

12 lines
218 B
TypeScript

import { withAuth } from 'next-auth/middleware'
// export { default } from 'next-auth/middleware'
export default withAuth({
pages: {
signIn: '/',
},
})
export const config = { matcher: ['/account/:path*'] }