The azp claim may not always exist on the Clerk JWT. From the Clerk docs:
azp: authorized party - the Origin header that was included in the original Frontend API request made from the user. Most commonly, it will be the URL of the application. For example: https://example.com. This claim could be omitted if, for privacy-related reasons, Origin is empty or null.
This causes an error when decoding the JWT because azp is required in ClerkJwt: Error(Json(Error("missing field `azp`", line: 1, column: 185))).
The
azp
claim may not always exist on the Clerk JWT. From the Clerk docs:This causes an error when decoding the JWT because
azp
is required inClerkJwt
:Error(Json(Error("missing field `azp`", line: 1, column: 185)))
.