refactor: some tweaks
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user