diff --git a/keyserver/src/utils/fc-cache.js b/keyserver/src/utils/fc-cache.js index ff48c2dff..6c32e215c 100644 --- a/keyserver/src/utils/fc-cache.js +++ b/keyserver/src/utils/fc-cache.js @@ -1,31 +1,35 @@ // @flow import { getCommConfig } from 'lib/utils/comm-config.js'; import { getFCNames as baseGetFCNames, type GetFCNames, type BaseFCNamesInfo, } from 'lib/utils/farcaster-helpers.js'; import { FCCache } from 'lib/utils/fc-cache.js'; import { NeynarClient } from 'lib/utils/neynar-client.js'; -type NeynarConfig = { +key: string }; +type NeynarConfig = { + +key: string, + +signerUUID?: string, + +neynarWebhookSecret?: string, +}; let getFCNames: ?GetFCNames; let neynarClient: ?NeynarClient; async function initFCCache() { const neynarSecret = await getCommConfig({ folder: 'secrets', name: 'neynar', }); const neynarKey = neynarSecret?.key; if (!neynarKey) { return; } neynarClient = new NeynarClient(neynarKey); const fcCache = new FCCache(neynarClient); getFCNames = (users: $ReadOnlyArray): Promise => baseGetFCNames(fcCache, users); } export { initFCCache, getFCNames, neynarClient };