Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
Simple JWT Login – Allows you to use JWT on REST endpoints. icon

Simple JWT Login – Allows you to use JWT on REST endpoints.

v4.3.1
by Nicu Micle · 5.0 (47 reviews)

The main purpose of this plugin is to allow Mobile apps, or other websites to access the content via REST endpoints in a secure way.

4K+ active installs Updated Dec 02, 2026 Tested to 7.1.5 Requires PHP 5.5
Try Demo Download
Pre-installed Ready in ~10s No card

About Simple JWT Login – Allows you to use JWT on REST endpoints.

Simple JWT Login is a free WordPress plugin that allows you to use a JWT (JSON Web Token) on WordPress REST endpoints. It provides features such as auto-login, registration, authentication, password reset, and user deletion using a JWT. This plugin is useful for connecting a mobile app or other websites with a WordPress website.

Screenshots

Simple JWT Login – Allows you to use JWT on REST endpoints. screenshot
Simple JWT Login – Allows you to use JWT on REST endpoints. screenshot
Simple JWT Login – Allows you to use JWT on REST endpoints. screenshot
Simple JWT Login – Allows you to use JWT on REST endpoints. screenshot
Simple JWT Login – Allows you to use JWT on REST endpoints. screenshot
Simple JWT Login – Allows you to use JWT on REST endpoints. screenshot
Simple JWT Login – Allows you to use JWT on REST endpoints. screenshot
Simple JWT Login – Allows you to use JWT on REST endpoints. screenshot
Simple JWT Login – Allows you to use JWT on REST endpoints. screenshot
Simple JWT Login – Allows you to use JWT on REST endpoints. screenshot
Simple JWT Login – Allows you to use JWT on REST endpoints. screenshot

Changelog

A complete changelog is available on the GitHub repository.

4.3.1 (02 December 2026)

  • New WP-CLI commands: wp jwt webhook add|remove|enable|disable, api-key get|update|delete (update keeps the options not passed; --expires-at=never removes the expiration), rule list|add|remove (JWT Rules; keys are never listed, a random key is generated when none is given), integration list|enable|disable (OAuth providers and 3rd-party integrations), refresh-token list <user> (active refresh tokens, without their values), key status (algorithm, key source and the old keys kept by key rotate, never the keys) and config reset <section>...|--all (secrets are kept unless --include-secrets is passed).
  • wp jwt call <method> <route> --as=<user>: calls a REST endpoint over HTTP with a new 5 minute JWT of the user (no refresh token is stored), to check protected endpoints, CORS and JWT Rules like a real client.
  • Tab completion of the wp jwt commands and options: wp jwt completion >> ~/.bashrc (or --shell=zsh). WP-CLI’s own completion does not know plugin commands.
  • wp jwt log list --all lists every matching entry, for example --all --format=csv to export the log.
  • Breaking: Protect Endpoints no longer blocks the REST API index (/wp-json/, the discovery endpoint) unless a rule targets it, also when the default action is “Protect all” #105. To keep it protected, add a rule for /wp-json/: it matches the index only, never the other routes.
  • wp jwt key rotate and wp jwt setup: a JWT issued in the same second as the rotation was rejected right away instead of being kept until it expires. The rotation now waits for the next second (at most one second).
  • wp jwt validate now says an expired token signed with a key that was rotated or changed since is expired, instead of only “Signature verification failed”. The token is still reported as not valid (exit code 1).
  • Webhooks with a JSON body (the default payload or a JSON payload template) are now sent with Content-Type: application/json instead of application/x-www-form-urlencoded. A Content-Type header set on the webhook is still used as is.

4.3.0 (28 November 2026)

  • New jti JWT payload claim (Authentication > JWT payload): a unique, random ID in every issued JWT, so two tokens issued for the same user in the same second are no longer identical (revoking one no longer revokes the other). Enabled by default, also on existing sites (settings schema version 3). The admin page shows a warning when it is turned off.
  • WP-CLI commands are now part of the plugin (General > CLI, enabled by default): wp jwt login, decode, validate, revoke and wp jwt config get|set|list|export|import. wp jwt config set and import now run the same validation as an admin save (skip it with --force). While the separate Simple-JWT-Login CLI plugin is active, the built-in commands stay disabled (and the setting defaults to off) and the CLI card shows a warning: deactivate and delete that plugin.
  • New WP-CLI commands: wp jwt setup, generate (a JWT for a user, without the password), refresh, revoke-all (every JWT and refresh token of a user, whether or not “Revoke tokens on password change” is on), key generate|rotate (--algorithm=random picks a random algorithm with a matching key), api-key create|list|revoke, auth-code list|add|remove, doctor, security-report, explain-error, log list|analyze, webhook list|test|logs and cleanup. Lists support --format=table|csv|json|yaml|count and --fields.
  • wp jwt key rotate does not break issued tokens: the old key is kept in a JWT Rule for the tokens issued before the rotation and removed by the daily cleanup once they expire. Use --immediate for a leaked key. Also used by wp jwt setup when it replaces a key.
  • JWT Rules: new less than operator, for whole-number claims such as iat.
  • wp jwt login no longer needs --password on the command line: it asks for it (hidden) or reads it from STDIN.
  • wp jwt validate exits with 1 when the token is not valid.
  • Audit log: new cli.command.success and cli.command.failed events record the WP-CLI commands that change something. A command that turns the audit log off is still recorded.
  • Fixed a database error on /revoked-tokens, /api-keys and the audit / webhook logs when a very large page is requested: the SQL offset overflowed into a negative number. Such pages now return an empty list.
  • Fixed a 500 error on /users, /user/reset_password, /auth/refresh and /oauth/token when a parameter is sent as an array or an object; these requests now get the usual validation error.
  • Fixed a PHP fatal error when a webhook with the GET method was called. GET webhooks now send the event fields as query parameters (the payload template is not used for them).
  • The settings save now rejects an unsupported JWT algorithm (settings error code 2010) instead of storing it and failing on every token.
  • API documentation: the id in the decoded JWT payload of /auth/validate is documented as a numeric string, as it is returned.
  • Added a Schemathesis check (composer run test-openapi, also in CI) that the live REST responses match the OpenAPI spec.

4.2.1 (22 November 2026)

  • Security: Security hardening.
  • Security: Added more security regression tests.

4.2.0 (19 November 2026)

  • Security: Fixed multiple security vulnerabilities affecting authentication, authorization, and REST API endpoints.
  • Security: Added security regression tests reproducing previously identified vulnerabilities to prevent regressions.
  • Security: Strengthened validation and authorization mechanisms across affected endpoints.
  • Security: Improved overall security and robustness.
  • Security: Improved the data returned by REST API endpoints.
  • New option “Revoke sessions on password change” (Authentication, off by default). When on, changing a password deletes the user’s refresh tokens and rejects every JWT issued before the change. JWTs without an iat claim are then also rejected for that user
  • New optional “Expected audience (aud)” setting for the plugin’s own JWTs and for each JWT Rule. When set, new JWTs carry that aud and only JWTs whose aud contains it are accepted (new error code 130)
  • New OAuth options, off by default, to accept tokens that are not bound to the configured app, for backward compatibility: “Allow tokens issued for other Google clients”, “Allow tokens issued for other Facebook apps”, “Allow tokens issued for other GitHub apps” (also accepts personal access tokens) and Auth0 “Allow opaque access tokens”. The admin screen shows a security warning while one is on: any app on that provider could then log its users into the matching WordPress accounts
  • Dashboard: new “Security notices” section listing the enabled options and settings that weaken security (critical and warning findings of the security report), most severe first. Clicking a notice opens the matching settings tab. The dashboard and the AI security-report ability also report the OAuth options above when they are on
  • /auth now checks the password with wp_authenticate(), so brute-force and user-block plugins (Limit Login Attempts, Wordfence, …) protect it like wp-login.php. Application passwords can not be exchanged for a JWT
  • The security report now warns when authentication with password_hash is enabled
  • Admin: optional support banner with a donation link at the top of the settings page. It can be dismissed for 6 months and no features are locked behind donations
  • OpenAPI: the endpoints used by the plugin admin screens (/api-keys*, /revoked-tokens*) are tagged internal, with their access rules (revoked tokens: administrators only; API keys: own keys, administrators manage every user’s keys)
  • OpenAPI: every endpoint now documents its real request parameters, status codes and error codes, with examples taken from the plugin messages
  • Breaking: WordPress 6.2 or newer is required (was 4.4). The plugin’s database queries use the %i identifier placeholder added in WordPress 6.2
  • Breaking: The OAuth login buttons (Google, Auth0, Facebook, GitHub) now go through the plugin, which redirects to the provider. Custom login buttons or links that send visitors straight to the provider with the plugin’s callback as redirect_uri stop working. Link to GET /oauth/token?provider=<provider> instead
  • Breaking: Tokens sent to the OAuth endpoint (and Google id_tokens used on all endpoints) must be issued for the app configured in the plugin: a Facebook or GitHub access_token must belong to the configured app (GitHub personal access tokens are rejected), a Google id_token must have the configured Client ID as aud, and an Auth0 access_token must be a JWT issued for the configured Auth0 Client ID (azp or aud), so opaque Auth0 access tokens are rejected. Sites that need the old behavior can turn on the matching new option (see New)
  • Breaking: POST /user/reset_password with an unknown email now answers 200 instead of 404 “Wrong user.”
  • Breaking: With “Trust reverse proxy IP headers” on, the client IP is read from the last X-Forwarded-For entry only. Sites whose proxy sends the client IP only in Client-IP must switch the proxy to X-Forwarded-For
  • Breaking: After too many wrong two-factor codes (30 by default, Two Factor filter two_factor_failed_attempt_limit) sent to POST /auth/2fa or the OAuth two-factor form, the user’s password is reset and the user and admin are emailed, as on wp-login.php
  • Breaking: API keys used on /batch/v1 need the create, update and delete permissions, otherwise they get 401
  • Breaking: Client errors that answered HTTP 500 now answer their real status (error_code values are unchanged):
    • 401: 2FA session expired / interim JWT missing claims / wrong 2FA code (106, 107, 109), interim 2FA JWT used as a normal JWT (110), JWT without the “JWT login by” claim (29, 30), Facebook and GitHub invalid code or token (98, 99, 102, 103), Google id_token issued for another client (118)
    • 403: revoked token endpoints called by a non-administrator (115), OAuth account email not verified (111 Auth0, 112 GitHub, 119 Google)
    • 404: Facebook and GitHub user not found (100, 104), revoked token id not found (116)
    • 422: invalid OAuth provider or missing OAuth code/token (69, 71, 77, 97, 101), missing reset password code (60), API key without name or permissions, or with an unknown permission (85, 86, 87)
    • 429: too many wrong 2FA codes (108)
  • Breaking: Failing to store the 2FA session now has its own error code 133 (HTTP 500); it used to share code 107 with “2FA session expired”
  • Fix the Facebook browser login returning a 500 error instead of the login page with the error message when Facebook rejects the code
  • Fix two parallel /auth/refresh calls with the same refresh token both getting a new JWT: a refresh token can now be used once only
  • Fix API keys and refresh tokens staying in the database when a user is deleted in wp-admin, and an API key of a deleted user causing a 500 error instead of 401
  • Fix /auth rejecting base64 passwords that contain ', " or \. Invalid base64 now answers “Wrong user credentials.”
  • Fix /auth and /auth/refresh returning a refresh token that could not be saved: they now answer 500 (new error code 131)
  • Fix API key expires_at accepting any text: it must be a date, a date time or an ISO 8601 date (new error code 132), is read as UTC and stored as UTC. The admin form now sends the browser’s local time converted to UTC
  • Fix the Delete button in Security > Revoked Tokens, which always failed with “Invalid revoked token ID.”: DELETE /revoked-tokens/{id} now receives the id from the URL path (it answered 500, error_code 116)

4.1.1 (15 November 2026)

  • Security: a JWT read from a cookie, the session or the Authorization header no longer authenticates cross-site requests (including sibling subdomains and other ports), fixing CSRF on cookie-authenticated REST requests when the API middleware is enabled (Reported via Patchstack)
  • Breaking: cross-origin browser apps that send the JWT must have their origin listed in the CORS “Allow origin” setting. A “*” entry trusts the Authorization header only, never the cookie or session
  • Breaking: with CORS disabled (or “Allow origin” off), a JWT sent by a browser page on another site, even in the Authorization header, is ignored. Requests from the site itself, server-to-server calls, mobile apps and JWTs passed in the URL (e.g. autologin links) are not affected
  • Fix “JWT from session” making every plugin endpoint and Protect Endpoints fail with a 500 error (call to an undefined session function)

4.1.0 (11 November 2026)

  • Security: fix CSRF in the Force Login integration on cookie-authenticated REST requests (Reported via Patchstack)
  • Security: JWT middleware and the WooCommerce integration now check the resolved REST route instead of searching the URL
  • Security: Protect Endpoints now enforces “JWT + Roles” rules for logged-in (cookie-authenticated) users and API key owners
  • New integration: AI Abilities (MCP) – let AI agents manage and troubleshoot the plugin through the WordPress Abilities API (WordPress 6.9+)
  • Fix secrets (auth codes, JWT rule keys, webhook header values) being written in plain text to the “Settings Saved” audit log entry
  • Security: registration never sets capability, user level or session meta keys from the request, even when they are listed in “Allowed user meta”
  • Security: webhook calls time out after at most 30 seconds (0 now means 30 seconds instead of no timeout), so a slow webhook endpoint cannot hang logins
  • Fix login creating two WordPress sessions instead of one (autologin, register with auto-login, OAuth), reducing DB writes per login
  • Performance: API key “last used” timestamp is now updated at most once per minute per key, instead of on every request. A new Update “Last used” setting (API Keys) lets you switch back to updating it on every request
  • Performance: remove an extra database query on every API key request
  • WooCommerce integration: authenticate JWT requests without a full login, so API calls no longer create a new WordPress session, set auth cookies or fire wp_login on every request
  • Performance: load the WordPress admin user functions only when deleting a user, instead of on every request
  • Performance: Protect Endpoints no longer checks the revoked-token table twice for every JWT-authenticated request
  • Performance: the Force Login, WooCommerce and WPGraphQL integrations reuse the plugin settings instead of re-reading and decoding them on every REST request
  • Performance: Protect Endpoints checks access once per REST request instead of every time WordPress reads the route list
  • Fix CORS headers missing on REST error responses (401/403 from JWT auth and protected endpoints) #179
  • CORS: support multiple allowed origins (comma-separated); the matching request origin is echoed back, and * echoes the request origin so credentialed requests work #179

4.0.2 (09 October 2026)

  • Fix WooCommerce integration #177
  • Update WordPress 7.1 compatibility

4.0.1 (09 August 2026)

  • Apply protect endpoints rules only on REST endpoints
  • Improve Google Oauth Security (Reported by @FaridNarimanov) #174
  • JWT Payload: strip reserved claims improvement

4.0.0 (06 July 2026)

  • Redesign Protect Endpoints: replace separate whitelist/protected lists with a unified ordered rules table where each rule explicitly sets access to Public, JWT required, or JWT + Roles; rules are evaluated top-to-bottom with first-match-wins; old settings auto-migrate;
  • Redesigned Plugin Settings interface
  • Fix double encoding for Reset Password email body#165
  • New refresh token handling
  • Add Audit logs
  • Add support for multiple JWT Decryption keys based on JWT header or payload
  • Move User identification from Login to General
  • Add Webhooks
  • Enable/disable Revoke and Validate token
  • Add support for API Keys (X-API-Key) to access WordPress endpoints as an authenticated user
  • Allow JWT authentication on the API Keys endpoint (in addition to cookie-based login)
  • Improve HTTP Status Codes for errors
  • Add Auth0, Facebook and GitHub Oauth
  • BREAKING CHANGE Rename errorCode to error_code in error responses
  • BREAKING CHANGE Add 2FA support
  • BREAKING CHANGE Add refresh token to Authentication
  • BREAKING CHANGE Remove User Identification from Delete, and use the one from General
  • BREAKING CHANGE Reorganize settings structure in DB
  • BREAKING CHANGE Change register user response ({“success”:true, “ID”: 1,…}) to {“success”:true, “data”:{“id”:..}}
  • BREAKING CHANGE Remove old /register user endpoint (only POST /users route available for register)
  • Fix register, authenticate, and reset password special characters for passwords
  • Replace variables in reset password email subject
  • Add option for sending default WordPress email on user registration
  • Add option for sending default password change WordPress email when change password endpoint is called
  • Improve plugin security and performance
  • Add Light/Dark mode UI
  • Allow non admin users to manage their own API keys
  • Add option for ‘Require “Bearer” prefix’ #96
  • Support multiple default user roles on registration
  • Add Full WooCommerce support

3.6.7 (03 July 2026)

  • Improve plugin security

3.6.6 (22 May 2026)

  • Update WordPress 7.0 Compatibility

3.6.5 (14 Mar 2026)

  • Fix CVE-2025-58648 – Stored Cross-Site Scripting vulnerabilityPR
  • Fix for bug: Reset password function doesn’t use base64 encoding logic and doesn’t allow user to use any special character #161 #163
  • Fix PHP session initialization warning #159
  • Update WordPress 6.9 Compatibility

3.6.4 (17 Apr 2025)

  • Update WordPress 6.8 Compatibility

3.6.3 (15 Apr 2025)

  • Fix protect endpoints #149

3.6.2 (09 Apr 2025)

  • Fix blocked backened endpoints by ProtectEndpoints #146
  • Ensure Protect endpoints searches for JWT in session

3.6.1 (02 Apr 2025)

  • Validate JWT on protect endpoints#141
  • Fix backward compatibility for protect endpoints. Add match/start_with option for endpoints.#143

3.6.0 (24 Mar 2025)

  • Add support for configuring request methods on Protect endpoints #129
  • Beta: Authenticate user when performing queries with WPGraphQL #32
  • Code refactorization and UI improvements
  • Authenticate by Username or Email (similar to WP login)#19

3.5.8 (14 Feb 2025)

  • Use wp_safe_redirect for redirects #115
  • Ensure JWT middleware only run once #125:

3.5.7 (22 Dec 2024)

  • Update WordPress 6.7 Compatibility

3.5.6 (03 Aug 2024)

  • Update WordPress 6.6 Compatibility
  • Fix revoked token validation when middleware enabled #110

3.5.5 (04 May 2024)

  • Update README
  • Refactor Protect Endpoints

3.5.4 (03 May 2024)

  • Add OAuth support for Google #97
  • Fix status code for expired tokens #102
  • Update WordPress 6.5 Compatibility

3.5.3 (16 November 2023)

  • Fix licence in composer.json
  • Update WordPress 6.4 compatibility

3.5.2 (02 November 2023)

  • Fix change user password with revoked JWT
  • Change routes priority from floats to int and fix deprecation message “Implicit conversion from float to int loses precision”
  • Add iss to JWT payload and allow to configure it
  • Fix user meta on register user #86
  • Fix calling protected endpoints with revoked token #75

3.5.1 (1 October 2023)

  • Update WordPress 6.3 compatibility

3.5.0 (04 Jan 2023)

  • Fix unable to create post issue when protect endpoints is enabled for all endpoints
  • Search user by email on reset password
  • Drop support for PHP 5.3 and PHP 5.4

For the full history back to 1.0.0 (2019), see the Changelog on GitHub.

Try other plugins