first commit

This commit is contained in:
Jeannette Chin committed 2026-10-04 14:28:26 +01:00
commit 5d6023a8af
52 files changed
+5830

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" });
}