add: GitHub authentication
This commit is contained in:
14
src/app/(frontend)/login/page.tsx
Normal file
14
src/app/(frontend)/login/page.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { signIn } from "@/auth";
|
||||
|
||||
export default function SignInButton() {
|
||||
return (
|
||||
<form
|
||||
action={async () => {
|
||||
"use server";
|
||||
await signIn("github");
|
||||
}}
|
||||
>
|
||||
<button type="submit">Sign In</button>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user