first commit

This commit is contained in:
Jeannette Chin committed 2026-10-04 14:02:29 +01:00
commit 8863184a41
42 files changed
+3660

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
"use server";
import { auth, signIn, signOut } from "@/auth";
export async function handleGoogleLogin() {
console.log(`google action`);
await signIn("google", { redirectTo: "/" });
}
export async function checkGoogleSession() {
const session = await auth();
return session;
}
export async function handleGoogleSignout() {
await signOut({ redirectTo: "/login" });
}