Back to Clerk

`frontendApi` -> `publishableKey` as param to createClerkClient

packages/upgrade/src/versions/core-2/node/createclerkclient-frontendapi.md

latest427 B
Original Source

The frontendApi argument passed to createClerkClient must be changed to publishableKey. Note that the values of the two keys are different, so both keys and values need to be changed. You can find your application's publishable key in the Clerk dashboard.

diff
import { createClerkClient } from '@clerk/clerk-sdk-node';

- createClerkClient({ frontendApi: '...' });
+ createClerkClient({ publishableKey: '...' });