An overview of authentication methods for the Whop API
export const whopApi = WhopApi({ appApiKey: process.env.WHOP_API_KEY, onBehalfOfUserId: "YOUR_USER_OR_AN_AGENT_USER", companyId: undefined, }); // fetch another user await whopApi.FetchPublicUser({ userId: winningUser });
Was this page helpful?