wp-graphql / wp-graphql-jwt-authentication

Authentication for WPGraphQL using JWT (JSON Web Tokens)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jwt_auth_iss filter not working

radicek opened this issue · comments

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';
});