Add signer creation

This commit is contained in:
Shreyaschorge
2025-07-05 00:51:31 +05:30
parent 02146b4ff5
commit 8563812b4f
6 changed files with 804 additions and 225 deletions

View File

@@ -2,9 +2,15 @@ import { NextResponse } from 'next/server';
import { getNeynarClient } from '~/lib/neynar';
export async function GET() {
const client = getNeynarClient();
const response = await client.fetchNonce();
return NextResponse.json(response);
try {
const client = getNeynarClient();
const response = await client.fetchNonce();
return NextResponse.json(response);
} catch (error) {
console.error('Error fetching nonce:', error);
return NextResponse.json(
{ error: 'Failed to fetch nonce' },
{ status: 500 }
);
}
}