refactor: some tweaks

This commit is contained in:
Riccardo
2024-06-26 15:13:31 +02:00
parent a4179719cb
commit 2076668eab
2 changed files with 2 additions and 3 deletions

View File

@@ -2,10 +2,8 @@ import { NextResponse } from 'next/server';
import { getSession, withApiAuthRequired } from '@auth0/nextjs-auth0';
const GET = withApiAuthRequired(async () => {
export const GET = withApiAuthRequired(async () => {
const session = await getSession();
return NextResponse.json(session?.user);
});
export { GET };