79644883

Date: 2025-05-30 04:12:55
Score: 1.5
Natty:
Report link

In order to utilize permission_callback correctly with JWT Authentication in WordPress, you need to make sure that:

The Jwt token is sent using the Authorization header

The token is validated with that same logic that the JWT Authentication for WP REST API plugin use (or your custom logic if you have any)

The personal_callback function returns true of the user is logged in.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: NAYLESH PRAJAPATI