mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
fix: google oauth
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