Title: PHP Parse Error Jwt_Auth_Loader
Last modified: November 5, 2022

---

# PHP Parse Error Jwt_Auth_Loader

 *  [Barton](https://wordpress.org/support/users/thebarton/)
 * (@thebarton)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-parse-error-jwt_auth_loader/)
 * I got this in my logs also:
 * PHP Parse error: syntax error, unexpected ‘Jwt_Auth_Loader’ (T_STRING), expecting
   function (T_FUNCTION) or const (T_CONST) in /wp-content/plugins/jwt-authentication-
   for-wp-rest-api/includes/class-jwt-auth.php on line 35

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [jamesmarquez](https://wordpress.org/support/users/jamesmarquez/)
 * (@jamesmarquez)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-parse-error-jwt_auth_loader/#post-16169721)
 * [@thebarton](https://wordpress.org/support/users/thebarton/) is your PHP version
   7.3 or below? I’m having the same error with that version but I don’t have that
   issue in 7.4 and 8
 *  Thread Starter [Barton](https://wordpress.org/support/users/thebarton/)
 * (@thebarton)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-parse-error-jwt_auth_loader/#post-16170346)
 * For this website it’s: PHP 7.4.32 (Supports 64bit values)
 * And the plugin version is 1.3.2
 *  [pluspol](https://wordpress.org/support/users/pluspol/)
 * (@pluspol)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-parse-error-jwt_auth_loader/#post-16557844)
 * We’re experiencing the same issue with PHP 7.4.
 * The reason might be that the require statement is processed to late.
 * As a solution the plugin may load the Composer autoloader int “jwt-auth.php” 
   and also use it for its own classes. That would completely remove the need for
   the require statements.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Parse Error Jwt_Auth_Loader’ 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/)

 * 3 replies
 * 3 participants
 * Last reply from: [pluspol](https://wordpress.org/support/users/pluspol/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/php-parse-error-jwt_auth_loader/#post-16557844)
 * Status: not resolved