fix 401 and cleanup

This commit is contained in:
Shreyaschorge
2025-07-11 02:35:25 +05:30
parent 797c5b7154
commit 7b431677dc
2 changed files with 5 additions and 39 deletions

View File

@@ -5,15 +5,6 @@ import { getNeynarClient } from '~/lib/neynar';
export async function GET(request: Request) {
try {
const session = await getServerSession(authOptions);
if (!session?.user?.fid) {
return NextResponse.json(
{ error: 'No authenticated session found' },
{ status: 401 }
);
}
const { searchParams } = new URL(request.url);
const message = searchParams.get('message');
const signature = searchParams.get('signature');