This repository has been archived on 2026-01-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nextjs-auth0/middleware.ts
2024-06-26 14:44:57 +02:00

8 lines
209 B
TypeScript

import { withMiddlewareAuthRequired } from '@auth0/nextjs-auth0/edge';
export default withMiddlewareAuthRequired();
export const config = {
matcher: ['/api/protected/:path*', '/module/:path*', '/user']
};