Skip to content

How to setup Restful API via JWT Authentication in WordPress

James Yang edited this page Mar 3, 2020 · 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');

  1. Make sure adding below two lines in .htaccess file if using Apache.