middleware nextauth
export { default } from 'next-auth/middleware'
export const config = {
matcher: ['/saji/:path*']
}
i created middleware file and it is not working as expecting where when i navigate to /saji it direct me to login page but if i navigate to /saji/test is not working and it show the page even if the user is not authorized i did authprovider and every thing and i can not solve the problem
sorry for my english
export const config = {
matcher: ['/saji/:path*']
}
i created middleware file and it is not working as expecting where when i navigate to /saji it direct me to login page but if i navigate to /saji/test is not working and it show the page even if the user is not authorized i did authprovider and every thing and i can not solve the problem
sorry for my english
