mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 04:19:22 +00:00
feat: demo
This commit is contained in:
9
demo/nextjs/middleware.ts
Normal file
9
demo/nextjs/middleware.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { authMiddleware } from "better-auth/next-js";
|
||||
|
||||
export default authMiddleware({
|
||||
redirectTo: "/sign-in",
|
||||
});
|
||||
|
||||
export const config = {
|
||||
matcher: "/dashboard",
|
||||
};
|
||||
Reference in New Issue
Block a user