mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-16 08:08:56 -05:00
feat: update config for neynar client
This commit is contained in:
parent
27abf08ed2
commit
d483780019
@ -1,4 +1,4 @@
|
||||
import { NeynarAPIClient } from '@neynar/nodejs-sdk';
|
||||
import { NeynarAPIClient, Configuration } from '@neynar/nodejs-sdk';
|
||||
|
||||
let neynarClient: NeynarAPIClient | null = null;
|
||||
|
||||
@ -11,7 +11,8 @@ export function getNeynarClient() {
|
||||
if (!apiKey) {
|
||||
throw new Error('NEYNAR_API_KEY not configured');
|
||||
}
|
||||
neynarClient = new NeynarAPIClient(apiKey);
|
||||
const config = new Configuration({ apiKey });
|
||||
neynarClient = new NeynarAPIClient(config);
|
||||
}
|
||||
return neynarClient;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user