style: add styling for pages and forms

This commit is contained in:
Riccardo
2024-07-08 10:47:54 +02:00
parent eadc3269cf
commit 4aa1ef8463
7 changed files with 141 additions and 70 deletions

View File

@@ -5,5 +5,8 @@ import { getSession, withApiAuthRequired } from '@auth0/nextjs-auth0';
export const GET = withApiAuthRequired(async () => {
const session = await getSession();
return NextResponse.json(session?.user);
return NextResponse.json({
success: true,
data: { email: session?.user.email }
});
});