mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 20:37:44 +00:00
9 lines
173 B
TypeScript
9 lines
173 B
TypeScript
import { authMiddleware } from "better-auth/next-js";
|
|
|
|
export default authMiddleware({
|
|
redirectTo: "/sign-in",
|
|
});
|
|
|
|
export const config = {
|
|
matcher: "/dashboard",
|
|
}; |