WordPress JWT Authentication Plugin
Simple JWT Login is a free, open-source WordPress plugin that adds JSON Web Token (JWT) authentication to the WordPress REST API. It lets mobile apps, single-page applications, and external services securely interact with your WordPress site - without exposing admin credentials.
With Simple JWT Login you can:
- Authenticate users and receive a signed JWT
- Auto-login users via a tokenized link
- Register and delete users programmatically
- Reset and change passwords through the REST API
- Protect any REST endpoint so it requires a valid JWT
- Refresh, validate, and revoke tokens to manage session lifecycle
Whether you're building a headless WordPress site, a React/Vue front-end, a mobile app, or a third-party integration, Simple JWT Login provides a clean, standards-based authentication layer.
Follow the Quick Start - get a JWT and make your first authenticated call in 5 minutes. Already set up? See every route in the Endpoints overview.
Find by task
| Task | Where to look |
|---|---|
| Log a user in and get a JWT | Authentication |
| Send the JWT with each request | JWT Input Sources |
Call /wp/v2/* or custom routes as the logged-in user | JWT Middleware |
| Keep users logged in without asking for the password again | Refresh token |
| Log a user out | Revoke token |
| Check that a JWT is still valid | Validate token |
| Let users sign up from an app | Register user |
| Let users reset a forgotten password | Reset password |
| Open a logged-in WordPress session from a link | Autologin |
| Require a JWT, or a role, for some REST routes | Protect endpoints |
| Call the API from a browser on another domain | CORS |
| Log in with Google, Auth0, Facebook, or GitHub | OAuth |
| Add two-factor authentication | Two-Factor |
| Use JWTs with WPGraphQL | WPGraphQL |
| Build a headless WooCommerce store | WooCommerce |
| Authenticate server-to-server without a user password | API keys |
| Accept JWTs issued by another service (such as Auth0 or Firebase) | JWT Verification Rules |
| Add custom claims to the JWT | Authentication - custom claims |
| Run custom code on login, register, and other events | Hooks |
| Notify another system when something happens | Webhooks |
| Understand an error response | Error codes |
| See complete working code | Code examples |
Requirements
Minimum requirements
- WordPress 6.2 or higher (required since plugin version 4.2.0; earlier plugin versions supported WordPress 4.4 and later)
- PHP 5.5 or higher for the plugin code itself
The plugin code stays compatible with PHP 5.5, but WordPress sets its own PHP floor. WordPress 6.2 requires PHP 5.6.20+, and WordPress 6.6 and later require PHP 7.2.24+. In practice, your PHP version is set by the WordPress version you run.
Compatibility
| Supported | How it is checked | |
|---|---|---|
| WordPress | 6.2 and later | Tested up to WordPress 7.1 |
| PHP | 5.5 to 8.5 | Syntax-checked on PHP 5.5, 5.6, and 7.1 to 8.5 for every change |
| Full API test suite | PHP 8.4 and 8.5 | Runs against a real WordPress on Apache for every change |
| Web servers | Any server that runs WordPress | Apache may need a setting to pass the Authorization header - see Troubleshooting |
| AI abilities (MCP) | WordPress 6.9 and later | Uses the WordPress Abilities API |
Recommended for production
- The latest WordPress release
- A PHP version that still receives security updates (PHP 8.2 or newer)
- HTTPS on every request that carries a JWT
Installation Guide
Setting up Simple JWT Login is quick and easy. Choose one of the following installation methods:
Method 1 - Install from WordPress.org (Recommended)
-
Go to the Plugins menu in WordPress and click Add New.
-
Search for Simple JWT Login and select Install Now.

-
Activate the plugin when prompted.

Method 2 - Download and Install Manually
-
Click "Download" to get the latest Simple JWT Login plugin version.

-
Upload the
.zipfile via the WordPress plugin uploader (Plugins → Add New → Upload Plugin).
-
Click "Install Now" and Activate the plugin.

Now that you've installed Simple JWT Login, follow the Quick Start to get your first JWT, or see the Configuration guide to set up your JWT secret key and enable the features you need.
License
Simple JWT Login is open-source and distributed under the GPL 3.0 License.