From ad7b4f1ab0b3ef2f71e9a70078716aed50cdbf64 Mon Sep 17 00:00:00 2001 From: schererleander Date: Fri, 26 Dec 2025 18:08:48 +0100 Subject: feat(auth): add two-factor authentication support --- src/proxy.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/proxy.ts (limited to 'src/proxy.ts') diff --git a/src/proxy.ts b/src/proxy.ts new file mode 100644 index 0000000..796acfa --- /dev/null +++ b/src/proxy.ts @@ -0,0 +1,15 @@ +import { withAuth } from "next-auth/middleware" + +export default withAuth({ + callbacks: { + authorized: ({ token }) => !!token, + }, +}) + +export const config = { + matcher: [ + "/settings/:path*", + "/dashboard/:path*", + "/api/user/:path*" + ] +} -- cgit v1.3.1