ClerkJS API will not work even though I have inserted the correct Clerk API keys.
I am expecting for the application to allow me to use the ClerkJS API for user authentication.
ClerkJS API will not work even though I have inserted the correct Clerk API keys.
I am expecting for the application to allow me to use the ClerkJS API for user authentication.
Use publishableKey
instead frontendApi
. Docs here. Works for my Gatsby + Netlify website.
<ClerkProvider
publishableKey={clerk_pub_key}
navigate={to => navigate(to)}
>
Your application tree goes here.
<SignedIn>
<UserButton />
</SignedIn>
</ClerkProvider>
I also had this issue and I think it was caused because I had added the ENV variables after my site was deployed.
To fix this, I redeployed my most recent deployment and then everything worked.