fix: google oauth

This commit is contained in:
Bereket Engida
2024-09-17 14:40:17 +03:00
parent 8ab36a8d9c
commit 2a19b7c0bf
4 changed files with 41 additions and 17 deletions

View File

@@ -0,0 +1,9 @@
import { authMiddleware } from "better-auth/next-js";
export default authMiddleware({
redirectTo: "/sign-in",
});
export const config = {
matcher: ["/dashboard"],
};