Francismiko
Francismiko2y ago

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
Francismiko
FrancismikoOP2y ago
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
No description
No description
Francismiko
FrancismikoOP2y ago
I have set the 'aud' field in JWT like this
No description
Michal Srb
Michal Srb2y ago
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.
Francismiko
FrancismikoOP2y ago
I think my problem is in clerk's JWT template, not convex, thank you for your answer @Michal Srb

Did you find this page helpful?