This is the crate I’m using on cargo.toml of my axum project:
jwt-authorizer = “0.14.0”
This is my method signature:
pub async fn find_balances(
Path(account_string): Path<String>,
query_params: Query<QueryParams>,
header_map: HeaderMap,
JwtClaims(user): JwtClaims<RegisteredClaims>,
State(client): State<Client>,
) -> Result<Json<SaldoDTO>, Error> {
I would like access the “client_id” custom claim.
This claim can’t be retrieved from the JwtClaims(user): JwtClaims<RegisteredClaims>
How can I get it?