fix: Export isAuthenticated from convex/auth.ts to resolve a missing export error and add jose as a new dependency.

This commit is contained in:
2026-02-03 18:45:41 +00:00
parent 549f74c10b
commit 7c6d1cd681
5 changed files with 30 additions and 5 deletions

View File

@@ -6,7 +6,11 @@ import {
} from "@convex-dev/auth/nextjs/server";
const isSignInPage = createRouteMatcher(["/auth"]);
const isProtectedPage = createRouteMatcher(["/dashboard(.*)"]);
const isProtectedPage = createRouteMatcher([
"/dashboard(.*)",
"/onboarding(.*)",
"/opportunities(.*)",
]);
export default convexAuthNextjsMiddleware(async (request) => {
if (isSignInPage(request) && (await isAuthenticatedNextjs())) {