first commit
This commit is contained in:
commit
8863184a41
42 files changed
+3660
No files matched your search
@@ -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" });
|
||||
}
|
||||
Reference in new issue
Block a user