-
23 |
-
24 | Get started by editing{" "}
25 |
26 | src/app/page.tsx 27 |28 | . 29 |
30 | - Save and see your changes instantly. 31 |
Hi, {me.user.name}
61 |{me.user.email}
62 |Example sign in page using Better Auth
15 |Example sign up page using Better Auth
15 |153 | {body} 154 |
155 | ) 156 | } 157 | 158 | export { 159 | useFormField, 160 | Form, 161 | FormItem, 162 | FormLabel, 163 | FormControl, 164 | FormDescription, 165 | FormMessage, 166 | FormField, 167 | } 168 | -------------------------------------------------------------------------------- /src/app/(routes)/(home)/page.tsx: -------------------------------------------------------------------------------- 1 | import { buttonVariants } from "@/components/ui/button"; 2 | import { cn } from "@/lib/utils"; 3 | import Image from "next/image"; 4 | import Link from "next/link"; 5 | import SignOutButton from "../(auth)/components/button-signout"; 6 | import { getServerSession } from "@/lib/auth/get-session"; 7 | 8 | export default async function Home() { 9 | const me = await getServerSession(); 10 | 11 | return ( 12 |
26 | src/app/page.tsx
27 |
28 | .
29 | {me.user.email}
62 |