aam_current_jwt_filter
Purpose
Supply the JWT visible to policy markers.
Callback
- Type: Filter.
- Arguments:
$jwt. - Return: the filtered first argument.
Example
add_filter('aam_current_jwt_filter', function ($jwt) {
return $jwt ?: ($_SERVER['HTTP_X_MYAPP_JWT'] ?? null);
}, 10, 1);
Supplies a token from X-Myapp-Jwt only when AAM did not already find one. Validate tokens before trusting claims.
See the complete hook list.