Back to Clerk

`apiKey` -> `secretKey` as argument to getAuth

packages/upgrade/src/versions/core-2/remix/getauth-apikey.md

latest286 B
Original Source

The apiKey argument passed to getAuth must be changed to secretKey.

diff
import { getAuth } from '@clerk/remix/ssr.server';

export const loader: LoaderFunction = async args => {
-  return getAuth(args, { apiKey: '...' });
+  return getAuth(args, { secretKey: '...' });
};