mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-14 13:22:31 -05:00
Add signer creation
This commit is contained in:
@@ -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 }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user