jwt_auth_iss filter not working
radicek opened this issue · comments
Luka Radicek commented
From docs:
/**
* Change the token issuer.
*
* @param string $iss The token issuer.
* @return string The token issuer.
*/
add_filter(
'jwt_auth_iss',
function ( $iss ) {
// Modify the "iss" here.
return $iss;
}
);
But when I try to set it, nothing happens, iss
still defaults to site address
add_filter( 'jwt_auth_iss', function () {
// Default value is get_bloginfo( 'url' );
return 'https://example.com';
});