aam_jwt_claims_filter

Purpose

Return the claim array AAM should sign. AAM has already added its revocable and refreshable fields at this point.

Callback

Example

add_filter('aam_jwt_claims_filter', function ($claims) {
    $claims['aud'] = home_url();
    return $claims;
});

The issued token includes the site URL as its audience. Token consumers must still validate that audience.

See the complete hook list.