INSTALLATION OF PLUGINS
Installation Plugin
JWT Authentication for WP REST API Plugin: – https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/
WP REST User Plugin: – https://wordpress.org/plugins/wp-rest-user/
JWT Authentication for WP REST API Plugin: –
Edit your .htaccess file by adding the following:
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
To add the secret key, edit your wp-config.php file and add a new constant called JWT_AUTH_SECRET_KEY.
define('JWT_AUTH_SECRET_KEY', 'your-top-secret-key'); // any top secret key
Last updated
Was this helpful?