Set up auth + corrected local db
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user