Back to Clerk

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

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

latest463 B
Original Source

The frontendApi argument passed to createClerkExpressWithAuth 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 { createClerkExpressWithAuth } from '@clerk/clerk-sdk-node';

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