add next auth & login with github

This commit is contained in:
Michi 2025-04-27 18:31:17 +02:00
parent 78afa6be22
commit 9a9110e58c
10 changed files with 226 additions and 22 deletions

View file

@ -0,0 +1,18 @@
import { signOut } from "@/auth";
import { LogOut } from "lucide-react";
export function SignOut() {
return (
<form
action={async () => {
"use server";
await signOut();
}}
>
<button className="flex flex-row items-center gap-2 cursor-pointer w-full" type="submit">
<LogOut size={16} />
<span>Log out</span>
</button>
</form>
)
}