feat: add middleware route protection
This commit is contained in:
7
middleware.ts
Normal file
7
middleware.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { withMiddlewareAuthRequired } from '@auth0/nextjs-auth0/edge';
|
||||
|
||||
export default withMiddlewareAuthRequired();
|
||||
|
||||
export const config = {
|
||||
matcher: ['/module/:path*', '/user']
|
||||
};
|
||||
Reference in New Issue
Block a user