Set up auth + corrected local db

This commit is contained in:
2024-11-09 18:41:41 -06:00
parent cb2e59e07e
commit 9c318b4451
6 changed files with 81 additions and 43 deletions

View File

@@ -1,3 +1,19 @@
import { auth } from "~/server/auth";
export default async function Home() {
return <h1>ls</h1>;
const session = await auth();
if (!session) {
<main>
<h1>Not signed in</h1>
</main>;
}
return (
<main>
<h1>ls</h1>
<pre>
<code>{JSON.stringify(session, undefined, 2)}</code>
</pre>
</main>
);
}