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:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user