Skip to main content
Free & Open Source WordPress Plugin
Simple JWT Login logo

Simple JWT Login

JWT login, registration, and endpoint protection for the WordPress REST API -
for headless sites, mobile apps, and WPGraphQL. Configured from wp-admin.

4,000+Active installs
100,000+Downloads
5 / 5Rating
100%Free

6+ yearsActive development
NewSimple JWT Login v4 is now available - API Keys, 2FA, Audit Logs, Webhooks, and more. v3 is now in maintenance mode (EOL Jan 31, 2027).See what's new →
Core Features

From first login to token revocation

Each feature is tagged V3 or V4 depending on which version introduced it.

V3V4
Login user

Open a WordPress session from a JWT link - for example, send a renewal email that lands the member on their account page, already logged in.

V3V4
Register user

Create WordPress users from a mobile sign-up screen, and limit who can register by Auth Code, IP, or email domain.

V3V4
Delete user

Offer an account deletion button in your app. The JWT identifies the account to remove.

V3V4
Authenticate user

Exchange WordPress credentials for a JWT, then refresh, validate, or revoke it - the login flow for a React or mobile app.

V3V4
Change and Reset password

Build a "Forgot password" screen in your app: email a reset code, then set the new password through the REST API.

V3V4
Limit access by IP

Accept logins or registrations only from your backend or office network - wildcards such as 85.*.*.* work too.

V3V4
Roles

Tie a role to each Auth Code - for example, one code for free members and another for premium - on a single endpoint.

V3V4
Integrate with other plugins

Send login links from MailPoet, authorize WPGraphQL queries, or call the REST routes that other plugins add.

V3V4
Protect endpoints

Require a JWT or a role per route and HTTP method - for example, stop anonymous visitors from listing /wp/v2/users.

V3V4
JWT on other endpoints

Publish a post to /wp/v2/posts from a mobile app as the logged-in author, without session cookies.

V3V4
Google OAuth

Add Google sign-in to your front end and get a WordPress JWT back, so users have no extra password to remember.

V3V4
Google OAuth endpoints

Already use Google sign-in in your app? Send the Google-issued token directly to WordPress REST endpoints.

V4

Give a CI pipeline a key that can only read and create content, with an expiry date you choose.

V4

Use the identity provider you already have: exchange an Auth0, Facebook, or GitHub login for a WordPress JWT.

V4

A stolen password alone gets no JWT: users with 2FA in the WordPress Two Factor plugin must also enter their code.

V4

Find out who deleted an account or why a login failed - search authentication events in wp-admin.

V4

Post to Slack when a user registers, or forward authentication events to your logging service.

V4

Build a React storefront: manage products and run the cart & checkout through the WooCommerce REST and Store APIs.

V4

Accept Auth0 tokens next to your own, or rotate keys in stages - rules pick the key from a JWT header or payload claim.

V4

Debug a rejected token without pasting it into a third-party site: read its header and payload in wp-admin.

Benefits

Why developers choose Simple JWT Login

No coding required

Keys, expiration, allowed IPs, and protected routes are all settings in wp-admin.

6 supported algorithms

Sign with a shared secret (HS256/384/512), or use RS256/384/512 so other services can verify tokens with only the public key.

4 JWT delivery methods

Authorization header, cookie, session, or request parameter. Turn off the ones your app does not use.

Built for developers

Action and filter hooks let you add JWT claims, block a login, or change an API response from your own plugin.

CORS per origin

List the exact front-end origins that can call your API, so a React or Vue app on another domain can log users in.

PHP 5.5+ compatible

The plugin code runs on PHP 5.5+, so your WordPress version sets the minimum. PHP 8.2 or newer is recommended in production.

Auto-login & magic links

Put a short-lived JWT in an email link and the subscriber lands on the page already logged in.

Full token lifecycle

Keep a mobile user signed in with refresh tokens, and revoke the JWT when they log out.

Free & open source

GPL 3.0 licensed, free and open-source, forever. No paid tier and no locked features.

Security

Secure defaults you can verify

A login plugin guards your whole site. Here is how the latest v4 release limits what an attacker can do, and how the project tests and fixes it - each card links to the details.

Off by default

Every plugin endpoint starts disabled. You expose only the operations your app needs.

Hardening guide →

Cross-site request checks

Cookie and session JWTs are ignored on cross-site requests unless you list that exact origin, which blocks CSRF.

How it works →

Tokens you can take back

Refresh tokens rotate on every use, JWTs can be revoked, and an optional setting ends sessions when a password changes.

Session revocation →

Hashed, least-privilege keys

API keys are stored only as SHA-256 hashes. Permissions follow the dispatched method, so method overrides cannot raise them.

API key design →

Security vulnerability fixes

Reported vulnerabilities are fixed and shipped in regular releases, documented in the release notes.

Security releases →

Security regression tests

A dedicated security test suite covers CSRF, user enumeration, trusted proxy IPs and ambient credentials, so fixed issues stay fixed.

Browse the tests →

Continuous integration

Unit, feature and cross-site test suites run automatically in GitHub Actions.

CI workflows →

WordPress compatibility testing

Feature tests run against a real WordPress install, alongside PHP syntax checks across multiple PHP versions and the official WordPress Plugin Check.

View the workflows →

Responsible disclosure

Found a vulnerability? Report it privately through GitHub security advisories instead of opening a public issue, so a fix can ship before details go public.

Report a vulnerability →
Ecosystem

SDKs and integrations for PHP, JavaScript, WPGraphQL, and WP-CLI

PHP

Connect any PHP app to Simple JWT Login with one Composer package - supports Laravel, Yii, CodeIgniter, and more.

PHPLaravelYiiCodeIgniter
composer require "nicumicle/simple-jwt-login-client-php"

JavaScript

Add JWT authentication to React, Vue, Angular, or any JS app with an npm package and a handful of lines.

JavaScriptVueReactAngular
npm install simple-jwt-login

WPGraphQL

Use your JWTs to authenticate GraphQL queries and mutations - enable it with a single checkbox.

WPGraphQL

MailPoet

Send magic-link login emails via MailPoet - let subscribers log in with one click, no password required.

Export & Import

Back up and restore your entire plugin configuration in one click - perfect for staging-to-production migrations.

WP-CLI

Built into the plugin since 4.3.0. Issue and revoke JWTs, rotate signing keys, manage API keys and settings, and read audit logs with wp jwt.

wp jwt generate admin --ttl=10
Try it live

Try the API against your own site

Run live demos right in your browser, against your own WordPress site - nothing is sent anywhere except the URL you provide.

One-click deploy

Don't have a site yet? Launch one in one click

Spin up a fully installed WordPress server on DigitalOcean - with Simple JWT Login ready for headless and REST API authentication. No Marketplace setup, no terminal, no install wizard. We hand you the login.

Quick Start

Up and running in 3 steps

1
Install & Activate

Search for Simple JWT Login in the WordPress plugin directory, install, and activate in one click.

2
Configure Settings

Set a JWT secret key, enable the endpoints you need (all are off by default), and choose how long tokens live.

3
Send the JWT

Call POST /auth to get a JWT, then send it as a Bearer token to the WordPress REST API endpoints you enable.

Get started →
Community

Join the community

Simple JWT Login is built in the open, by the community. Whether you write code, speak another language, or just want to spread the word - there's a place for you.

Star on GitHub

Show your appreciation and help others discover the project.

Star on GitHub →

Contribute Code

Submit issues, propose features, or open a pull request on GitHub.

Open a PR →

Rate on WordPress

Love the plugin? A 5-star review on WordPress.org makes a big difference.

Leave a review →

Help Translate

Make JWT auth accessible in every language - join us on translate.wordpress.org.

Start translating →
Reviews

What developers are saying

Awesome plugin

"The plugin works perfect and the support is even better!"

Thanks for a great plugin

"Works like a dream. Does what it needs to do. Thanks!"

Amazing work

"This plugin serves now as a one-stop shop for JWT authentication, esp for headless WP/web app setups. The even better part is the author who's extremely helpful, swift in responding & fixing issues, acknowledging improvement suggestions, pleasing to talk to and patient. I hope you can keep up the dedicated work, Nicu!"

Really good plugin, very straight forward

"Really good plugin, very straight forward to use"

No-Nonsense JWT (Excellence)

"This is probably the very absolute best no-nonsense JWT plugin on WordPress. Exceptionally well documented, high customization, easy to setup, and works out of the box with basic setup. No nonsense ads, either. Definitely deserving the 5-star rating across the board. Recommended."

Service & Support

"JWT login plugin is awesome, their support is quite responsive and efficient. They are able to help me and guide me on my customize function to custom generate jwt using their classes."

Awesome plugin

"This is what I needed, works as expected. Nice work!"

best all times

"it's the best of all JWT plugins, the responsiveness of the developer is simply incredible, he knows his project by heart and will help you efficiently."

Get your first WordPress JWT in 5 minutes

Install the plugin, set a secret key, and call POST /auth. Free and open-source, forever - no account required.