Use other JWT templates in clerk
It works fine when I configure a JWT template called <convex>. But when I configure a JWT such as: <convex-xxx>, there will be a problem that the verification fails
4 Replies
I followed the documentation here for development: https://docs.convex.dev/auth/clerk. My configuration in <convex.json> is shown in the picture. My JWT content doesn't change, this is the error I'm getting
I have set the 'aud' field in JWT like this
Hey @Francismiko , the important alignment is between the
"aud"
field and the applicationID
. Similarly the Issuer URL must match the domain
.
From your screenshots these seem correctly aligned. Make sure that you hit Apply Changes on Clerk dashboard and that you ran npx convex dev
to propagate the convex.json config to your dev deployment.I think my problem is in clerk's JWT template, not convex, thank you for your answer @Michal Srb