JWT Auth Pro provides a comprehensive set of filters that allow you to customize its behavior. Each filter is documented below with its description and usage example.
jwt_auth_before_authenticate
jwt_auth_issued_at
jwt_auth_issuer
jwt_auth_not_before
jwt_auth_expire
jwt_auth_token_user_data
jwt_auth_jwt_token_data_before_update
jwt_auth_token_before_sign
jwt_auth_algorithm
jwt_auth_secret_private_key
jwt_auth_secret_public_key
jwt_auth_token_before_dispatch
jwt_auth_refresh_token_generation
jwt_auth_refresh_token_expiration
jwt_auth_refresh_token_data_before_update
jwt_auth_security_headers
jwt_auth_error_messages
jwt_auth_error_status
jwt_auth_anonymize_ip
jwt_auth_rate_limit_enabled
jwt_auth_rate_limit_headers_enabled
jwt_auth_rate_limit_max_requests
jwt_auth_rate_limit_window_minutes
jwt_auth_revoke_tokens_on_password_change
jwt_auth_revoke_tokens_on_email_change
jwt_auth_revoke_tokens_on_role_change
jwt_auth_delete_tokens_on_user_delete
jwt_auth_ip_headers
jwt_auth_default_ip
jwt_auth_private_ip_country_code
jwt_auth_unknown_country_code
jwt_auth_error_country_code
add_filter()
function. The examples above show practical implementations for each filter.