Simple JWT Login – JWT Authentication for REST API
Modern JWT authentication for WordPress REST APIs, headless frontends, mobile apps, WooCommerce and WPGraphQL - fully free, no upsells.
Sichere Auswahl
Yes — Simple JWT Login is a safe, well-maintained plugin to use in 2026. It runs on 4K+ sites, is rated 5/5 and was last updated 2 days ago, and scores 93/100 on our health check.
- Loved by users — 5/5 from 47 reviews
- Aktiv entwickelt — Letztes Update vor 2 Tagen
- Getestet mit dem neuesten WordPress (7.1)
- Momentum — downloads up 140.1% vs the previous 30 days
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where Simple JWT Login stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| headless | #15 |
| jwt | #1 |
| oauth | #13 |
| rest-api | #12 |
| WooCommerce | >100 |
Versionsübernahme
Anteil aktiver Sites pro Release.
Bewertungsaufschlüsselung
★★★★★★★★★★ 5 from 47 reviews
About Simple JWT Login
From the official readme · v4.3.0Beschreibung
Log users in, register them, and protect your WordPress REST API with JSON Web Tokens – all from a friendly admin screen, without writing a single line of PHP.
Simple JWT Login turns WordPress into a secure backend for your headless frontend, mobile app, or external service. Next.js, React, Vue, React Native, Flutter, a Node.js server or a CI pipeline: if it can send an HTTP request, it can authenticate with your WordPress site.
And it is 100% free and open source. Refresh tokens, API keys, audit logs, webhooks, OAuth social login and two-factor authentication are all included. No Pro plan, no feature locks, no telemetry.
Trusted on 4,000+ WordPress sites, rated 5 stars on WordPress.org, and actively maintained since 2019.
“This is by far the best JWT plugin for headless. I’ve tried them all!”
– a developer, in a 5-star WordPress.org review
👉 Quick Start · Documentation · API Reference · Live Demos
⚡ See how simple it is
Send your credentials, get a token back:
curl -X POST \
https://your-site.com/wp-json/simple-jwt-login/v1/auth \
-d email=jane@example.com \
-d password=secret
The response:
{
"success": true,
"data": {
"jwt": "eyJ0eXAiOiJKV1Qi...",
"refresh_token": "a1b2c3d4..."
}
}
Turn on JWT Middleware for all WordPress endpoints, then call any WordPress REST endpoint as that user:
curl https://your-site.com/wp-json/wp/v2/users/me \
-H "Authorization: Bearer eyJ0eXAiOiJKV1Qi..."
That’s the whole integration. Everything else – refresh, auto-login, social login, protected routes – is a toggle away.
⭐ Like what you see? Star Simple JWT Login on GitHub and browse the source.
✨ Why developers choose Simple JWT Login
- No code required – every feature is a toggle in a clean, tab-based admin UI.
- Everything is free – the features other plugins sell as “Pro” ship here at no cost.
- Up and running in five minutes – copy the auto-generated sample URLs and try them right in the built-in endpoint tester.
- Secure by default – every endpoint starts disabled, and a security report on the dashboard points out risky settings.
- Runs on any host – from PHP 5.5 all the way to PHP 8, on WordPress 6.2 and newer.
- Truly open source – GPL 3.0, no obfuscated code, built in the open on GitHub.
🧰 Everything in one plugin
- Authentication – generate, refresh, validate and revoke JWTs, with HS or RS signing and custom claims. Learn more
- Auto-login – send users from your app straight into WordPress, already logged in. Learn more
- User management – register, reset passwords and delete accounts over REST, with auth codes for extra protection.
- Social login – Google, Facebook, GitHub and Auth0. Learn more
- Protected endpoints – choose who can reach each REST route: public, any logged-in user, or specific roles. Learn more
- CORS – let your frontend’s domain call the API safely. Learn more
- API keys – credentials with their own permissions and expiry for servers and scripts. Learn more
- Audit logs and webhooks – see every login attempt and notify your other systems. Audit logs · Webhooks
- WP-CLI – set up the plugin, issue, refresh, validate and revoke JWTs (also every token of a user), rotate the signing key, manage API keys, auth codes and settings, run the security report and diagnostics, and read the logs with
wp jwtcommands. Built in, no add-on needed. Learn more
🧩 Plays well with your favorite plugins
- 🛒 WooCommerce – build a headless store: cart, checkout and customer accounts over the REST and Store APIs, authenticated with a JWT and no session cookies. Learn more
- 🔐 Two Factor – users who have 2FA turned on send their code to
/auth/2fabefore they get a token, so your app is as safe as wp-login.php. Learn more - 🕸️ WPGraphQL – run authenticated GraphQL queries and mutations as the logged-in user. Learn more
- 🚪 Force Login – keep your site private while your app can still reach the login endpoints. Learn more
- 🤖 AI Abilities (MCP) – let AI agents check, configure and troubleshoot the plugin, with access you control. Learn more
🛠️ Built for developers
Hooks · PHP SDK · JavaScript SDK · CLI · Postman collection · Code examples · Error codes
🔒 Security you can verify
Authentication is only as good as its maintenance. Security reports are handled through responsible disclosure (GitHub private vulnerability reporting) and fixed within days, and every fix ships with a regression test that reproduces the original issue.
- Unit, integration and real-browser cross-site (CSRF and CORS) test suites run on every change
- Static analysis with PHPStan and PHPMD, and WordPress coding standards
- Brute-force protection plugins (Limit Login Attempts, Wordfence) cover the login endpoint just like
wp-login.php - The open source code is on GitHub – read it, audit it, contribute
💚 Free, and staying free
Here is what you get compared to the typical WordPress JWT plugin:
- JWT authentication – free here, free elsewhere
- Refresh tokens – free here, often paid or missing elsewhere
- API keys, audit logs, webhooks – free here, premium elsewhere
- Google, Facebook, GitHub and Auth0 login – free here, premium elsewhere
- WPGraphQL, WooCommerce and two-factor support – free here, rarely available elsewhere
- Custom JWT claims – free from the admin screen here, code or premium elsewhere
If it saves you time, a donation or a 5-star review keeps the project going.
Installation
- In your WordPress admin, go to Plugins > Add New and search for “Simple JWT Login”.
- Klicken Sie auf Jetzt installieren und dann Aktivieren.
- Open Settings > Simple JWT Login.
- In the General tab, set a long, random JWT Decryption Key and pick an algorithm (HS256 is a safe default).
- Enable the features you need – every endpoint is off until you turn it on.
That’s it. Each tab shows ready-to-copy sample URLs and a Try it out button, so you can test your first request without leaving WordPress.
Follow the Quick Start guide for a step-by-step walkthrough, or read about every option in the Configuration guide.
Änderungsprotokoll
Security release. All users are encouraged to upgrade.
A complete changelog is available on the GitHub repository.
4.3.0 (28 November 2026)
- New
jtiJWT 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. - Fixed a database error on
/revoked-tokens,/api-keysand the audit / webhook logs when a very largepageis 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/refreshand/oauth/tokenwhen a parameter is sent as an array or an object; these requests now get the usual validation error. - API documentation: the
idin the decoded JWT payload of/auth/validateis 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
iatclaim 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
audand only JWTs whoseaudcontains 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-reportability also report the OAuth options above when they are on /authnow checks the password withwp_authenticate(), so brute-force and user-block plugins (Limit Login Attempts, Wordfence, …) protect it likewp-login.php. Application passwords can not be exchanged for a JWT- The security report now warns when authentication with
password_hashis 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 taggedinternal, 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
%iidentifier 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_uristop working. Link toGET /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 GitHubaccess_tokenmust belong to the configured app (GitHub personal access tokens are rejected), a Googleid_tokenmust have the configured Client ID asaud, and an Auth0access_tokenmust be a JWT issued for the configured Auth0 Client ID (azporaud), 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_passwordwith 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-Forentry only. Sites whose proxy sends the client IP only inClient-IPmust switch the proxy toX-Forwarded-For - Breaking: After too many wrong two-factor codes (30 by default, Two Factor filter
two_factor_failed_attempt_limit) sent toPOST /auth/2faor the OAuth two-factor form, the user’s password is reset and the user and admin are emailed, as onwp-login.php - Breaking: API keys used on
/batch/v1need the create, update and delete permissions, otherwise they get 401 - Breaking: Client errors that answered HTTP 500 now answer their real status (
error_codevalues 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_tokenissued 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)
- 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
- 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/refreshcalls 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
/authrejecting base64 passwords that contain',"or\. Invalid base64 now answers “Wrong user credentials.” - Fix
/authand/auth/refreshreturning a refresh token that could not be saved: they now answer 500 (new error code 131) - Fix API key
expires_ataccepting 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_code116)
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_loginon 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
Screenshots
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best Simple JWT Login alternatives
All headless plugins →Fragen und Antworten
Simple JWT Login: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is Simple JWT Login free?
Yes. Simple JWT Login is free to download and use from the official WordPress.org plugin directory.
Is Simple JWT Login safe to use in 2026?
Yes — Simple JWT Login is a safe, well-maintained plugin to use in 2026. It runs on 4K+ sites, is rated 5/5 and was last updated 2 days ago, and scores 93/100 on our health check.
How many websites use Simple JWT Login?
Simple JWT Login is active on 4K+ WordPress websites and has been downloaded 110,576 times since it launched in June 2019. It was downloaded 8,801 times in the last 30 days.
Does Simple JWT Login work with WordPress 7.1?
Yes. The developer has tested Simple JWT Login up to WordPress 7.1.5, the latest release. It requires WordPress 6.2 or newer.
What PHP version does Simple JWT Login need?
Simple JWT Login requires PHP 5.5 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Simple JWT Login last updated?
The latest version, 4.3.0, was released on November 28, 2026 (2 days ago).
Who makes Simple JWT Login?
Simple JWT Login is developed and maintained by Nicu Micle.
What are the best alternatives to Simple JWT Login?
The most popular alternatives to Simple JWT Login are WPGraphQL (30K+ installs), WPGraphQL for ACF (10K+ installs) and Headless Mode (2K+ installs).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte
