jwt-auth/v1/token is missing the required permission_callback
-
It seems like this plugin is throwing a notice in WP 5.5 because it doesn’t set the new permission argument when defining the rest endpoints.
here is the full error:Notice: register_rest_route was called incorrectly. The REST API route definition for jwt-auth/v1/token is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in xxxxxxx/wp-includes/functions.php on line 5225
I suggest you update the file
jwt-authentication-for-wp-rest-api/public/class-jwt-auth-public.phpto add
'permission_callback' => __return_true()
to the arguments of both calls to
register_rest_route()
- The topic ‘jwt-auth/v1/token is missing the required permission_callback’ is closed to new replies.