# INSTALLATION OF PLUGINS

## &#x20;**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
```

&#x20;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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bikashdev.gitbook.io/ionic-5-news-app/installation-of-plugins.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
