first commit
This commit is contained in:
12
app/usr/test/page.tsx
Normal file
12
app/usr/test/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
"use client";
|
||||
import { useSession } from "next-auth/react";
|
||||
|
||||
export default function WhoAmI() {
|
||||
const { data } = useSession();
|
||||
return (
|
||||
<div>
|
||||
{data?.user?.name} / {data?.user?.email}
|
||||
<br />id: {(data?.user as any)?.id}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user