Init project. Set up auth & db

This commit is contained in:
2024-06-03 16:29:04 -05:00
commit 217a0d3952
24 changed files with 5115 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { signIn } from "~/auth"
export async function SignInGH() {
return (
<form className="w-full"
action={async () => {
"use server";
await signIn("github");
}}>
<button className="w-full" type="submit">Sign In With GitHub</button>
</form>
);
}

View File

@@ -0,0 +1,13 @@
import { signOut } from "~/auth"
export function SignOut() {
return (
<form className="w-full"
action={async () => {
"use server"
await signOut()
}}>
<button type="submit" className="w-full">Sign Out</button>
</form>
)
}