sarlink-portal/middleware.ts

11 lines
248 B
TypeScript

import { withAuth } from "next-auth/middleware";
export default withAuth(
// `withAuth` augments your `Request` with the user's token.
function middleware(req) {},
);
export const config = {
matcher: ["/about/:path*", "/dashboard/:path*"],
};