add signIn example

This commit is contained in:
Tony D'Addeo
2024-12-17 14:26:20 -06:00
committed by lucas-neynar
parent e1a87ff00f
commit cd4149abd5
9 changed files with 539 additions and 20 deletions

View File

@@ -1,5 +1,6 @@
import type { Metadata } from "next";
import { getSession } from "~/auth"
import "~/app/globals.css";
import { Providers } from "~/app/providers";
@@ -8,15 +9,17 @@ export const metadata: Metadata = {
description: "A Farcaster Frames v2 demo app",
};
export default function RootLayout({
export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const session = await getSession()
return (
<html lang="en">
<body>
<Providers>{children}</Providers>
<Providers session={session}>{children}</Providers>
</body>
</html>
);