14 lines
264 B
TypeScript
14 lines
264 B
TypeScript
|
import { signIn } from "@/auth"
|
||
|
|
||
|
export default async function SignIn() {
|
||
|
return (
|
||
|
<form
|
||
|
action={async () => {
|
||
|
"use server"
|
||
|
await signIn("github")
|
||
|
}}
|
||
|
>
|
||
|
<button type="submit">Signin with GitHub</button>
|
||
|
</form>
|
||
|
)
|
||
|
}
|