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? |
Answered by
talonx
May 24, 2024
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? |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you. That is helpful. However, the example now also needs
CLERK_PUBLISHABLE_KEYin the env, although I am not sure why. This is supposed to be required in the frontend only.When I add both
CLERK_PUBLISHABLE_KEYandCLERK_SECRET_KEYthe backend works.