mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-14 13:22:31 -05:00
NeynarAuthNutton
This commit is contained in:
10
src/app/api/auth/nonce/route.ts
Normal file
10
src/app/api/auth/nonce/route.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user