Title: Multisite Feature Request
Last modified: September 30, 2022

---

# Multisite Feature Request

 *  [johannschnagl](https://wordpress.org/support/users/johannschnagl/)
 * (@johannschnagl)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/multisite-feature-request-9/)
 * I’ve got a multisite and I’d like to use the token on all the sites. So I added
   a filter to the jwt_auth_token_before_sign hook and called
 * public function change_token( $token, $user ) {
    $token[‘iss’] = get_site_url(
   1); return $token; }
 * Unfortunately it seems not to be possible to change the iss for decoding in public/
   class-jwt-auth-public.php:
    287 /** The Token is decoded now validate the iss*/
   288 if ($token->iss != get_bloginfo(‘url’)) { 289 /** The iss do not match, return
   error */
 * It would be great change line 288 to something like:
    if ($token->iss != aply_filters(‘
   jwt_decode_iss’, get_bloginfo(‘url’))) {
 * Kind regards
    Hans

The topic ‘Multisite Feature Request’ is closed to new replies.

 * ![](https://ps.w.org/jwt-authentication-for-wp-rest-api/assets/icon-256x256.jpg?
   rev=3372068)
 * [JWT Authentication for WP REST API](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [johannschnagl](https://wordpress.org/support/users/johannschnagl/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/multisite-feature-request-9/)
 * Status: not resolved