Tmeister / wp-api-jwt-auth

A simple plugin to add JSON Web Token (JWT) Authentication to WP REST API
GNU General Public License v2.0
549 stars 159 forks source link

Add explicit permission callback to the REST routes #220

Closed rodrigo-arias closed 2 years ago

rodrigo-arias commented 3 years ago

Hi @Tmeister, thanks for your work on this plugin.

This PR explicitly defines the permission callbacks according to the change introduced in WP 5.5

Reference: https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/#permissions-callback

Grateful if you can integrate this.

PieterHeijman commented 3 years ago

This is a duplicate of #208 but should be included, since this is causing notices to be logged

rodrigo-arias commented 2 years ago

I'm closing this and migrating to JWT Auth