Skip to main content
Version: 4.x

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.

New here?

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​

TaskWhere to look
Log a user in and get a JWTAuthentication
Send the JWT with each requestJWT Input Sources
Call /wp/v2/* or custom routes as the logged-in userJWT Middleware
Keep users logged in without asking for the password againRefresh token
Log a user outRevoke token
Check that a JWT is still validValidate token
Let users sign up from an appRegister user
Let users reset a forgotten passwordReset password
Open a logged-in WordPress session from a linkAutologin
Require a JWT, or a role, for some REST routesProtect endpoints
Call the API from a browser on another domainCORS
Log in with Google, Auth0, Facebook, or GitHubOAuth
Add two-factor authenticationTwo-Factor
Use JWTs with WPGraphQLWPGraphQL
Build a headless WooCommerce storeWooCommerce
Authenticate server-to-server without a user passwordAPI keys
Accept JWTs issued by another service (such as Auth0 or Firebase)JWT Verification Rules
Add custom claims to the JWTAuthentication - custom claims
Run custom code on login, register, and other eventsHooks
Notify another system when something happensWebhooks
Understand an error responseError codes
See complete working codeCode 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​

SupportedHow it is checked
WordPress6.2 and laterTested up to WordPress 7.1
PHP5.5 to 8.5Syntax-checked on PHP 5.5, 5.6, and 7.1 to 8.5 for every change
Full API test suitePHP 8.4 and 8.5Runs against a real WordPress on Apache for every change
Web serversAny server that runs WordPressApache may need a setting to pass the Authorization header - see Troubleshooting
AI abilities (MCP)WordPress 6.9 and laterUses the WordPress Abilities API
  • 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:

  • Go to the Plugins menu in WordPress and click Add New.

    Add new plugin

  • Search for Simple JWT Login and select Install Now.

    Search for Simple JWT Login plugin

  • Activate the plugin when prompted.

    Activate the plugin

Method 2 - Download and Install Manually​

  • Access https://wordpress.org/plugins/simple-jwt-login/.

  • Click "Download" to get the latest Simple JWT Login plugin version.

    Download the plugin

  • Upload the .zip file via the WordPress plugin uploader (Plugins → Add New → Upload Plugin).

    Upload the plugin zip

  • Click "Install Now" and Activate the plugin.

    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.