feat: Implement Convex authentication including sign-in/sign-up UI, Convex client provider, and backend auth functions.
This commit is contained in:
9
middleware.ts
Normal file
9
middleware.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { convexAuthNextjsMiddleware } from "@convex-dev/auth/nextjs/server";
|
||||
|
||||
export default convexAuthNextjsMiddleware();
|
||||
|
||||
export const config = {
|
||||
// The following matcher runs middleware on all routes
|
||||
// except static assets.
|
||||
matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
|
||||
};
|
||||
Reference in New Issue
Block a user