Skip to content

How to setup Restful API via JWT Authentication in WordPress

James Yang edited this page Jul 29, 2019 · 2 revisions
  1. Download and install JWT Authentication for WP REST API plugins.
  2. Add the secret key, edit your wp-config.php file and add a new constant called JWT_AUTH_SECRET_KEY, this secret key must be unique and never revealed.

define('JWT_AUTH_SECRET_KEY', 'your-top-secret-key');

Clone this wiki locally