Are the Express JS examples still valid? #3438
-
Re: https://clerk.com/blog/how-to-authenticate-api-requests-with-clerk-express - and the related source code - https://github.com/argotdev/express-authentication/tree/main I've been trying to get these examples to work, but invariably run into a "Missing Clerk Secret Key" even though it's in my .env.local file with the key CLERK_API_KEY. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
So I figured out that the Clerk SDK version is
in my local (it's the latest AFAIK) whereas the examples have
The latter works, so it's most likely a change in the env var names. Can anybody point me towards the correct vars? |
Beta Was this translation helpful? Give feedback.
Thank you. That is helpful. However, the example now also needs
CLERK_PUBLISHABLE_KEY
in the env, although I am not sure why. This is supposed to be required in the frontend only.When I add both
CLERK_PUBLISHABLE_KEY
andCLERK_SECRET_KEY
the backend works.