Add auth and theme switcher

This commit is contained in:
2025-07-04 18:53:15 +02:00
parent f3c92cdab6
commit a12a8e4e1b
13 changed files with 858 additions and 33 deletions

View File

@ -0,0 +1,15 @@
"use client"
import { signIn, signOut } from "next-auth/react"
export function SignInOutButton({ session }: { session: any }) {
return session ? (
<button onClick={() => signOut()} className="text-sm underline">
Sign out
</button>
) : (
<button onClick={() => signIn("github")} className="text-sm underline">
Sign in with GitHub
</button>
)
}