Title: JuanMa JWT Auth Pro
Author: JuanMa Garrido
Published: <strong>11 Tháng 12, 2025</strong>
Last modified: 11 Tháng 12, 2025

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://ps.w.org/juanma-jwt-auth-pro/assets/icon-256x256.jpg?rev=3418045)

# JuanMa JWT Auth Pro

 Bởi [JuanMa Garrido](https://profiles.wordpress.org/juanmaguitar/)

[Tải về](https://downloads.wordpress.org/plugin/juanma-jwt-auth-pro.1.2.1.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/juanma-jwt-auth-pro/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/juanma-jwt-auth-pro/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/juanma-jwt-auth-pro/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/juanma-jwt-auth-pro/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/juanma-jwt-auth-pro/)

## Mô tả

Unlike basic JWT plugins that use **single long-lived tokens**, JWT Auth Pro implements**
modern OAuth 2.0 security best practices** with short-lived access tokens and secure
refresh tokens.

#### Why JWT Auth Pro?

**The Problem with Basic JWT Plugins:**
 * Long-lived tokens (24h+) = Higher security
risk * No refresh mechanism = Tokens live until expiry * XSS vulnerable = Tokens
stored in localStorage * No revocation = Can’t invalidate compromised tokens

**JWT Auth Pro Solution:**
 * Short-lived access tokens (1h default) = Minimal attack
window * Secure refresh tokens = HTTP-only cookies, XSS protected * Automatic token
rotation = Fresh tokens on each refresh * Complete session control = Revoke any 
user session instantly

#### Features

 * **Simple JWT Authentication** – Clean, stateless token-based auth
 * **HTTPOnly Refresh Tokens** – Secure refresh tokens in HTTP-only cookies
 * **Token Rotation** – Automatic refresh token rotation for enhanced security
 * **CORS Support** – Proper cross-origin request handling
 * **Clean Admin Interface** – Simple configuration in WordPress admin
 * **Developer Friendly** – Clear endpoints and documentation

#### Security Comparison

 Feature
 Basic JWT Plugins JWT Auth Pro

 Token Lifetime
 Long (hours/days) Short (1 hour)

 Refresh Tokens
 None Secure HTTP-only

 XSS Protection
 Limited HTTP-only cookies

 Token Revocation
 Manual only Automatic rotation

 Session Management
 None Database tracking

 Security Metadata
 None IP + User Agent

#### Perfect for:

 * Single Page Applications (React, Vue, Angular)
 * Mobile Applications (iOS, Android)
 * API Integrations (Third-party services)
 * Headless WordPress (Decoupled architecture)

#### API Endpoints

 * `POST /wp-json/jwt/v1/token` – Login and get access token
 * `POST /wp-json/jwt/v1/refresh` – Refresh access token
 * `GET /wp-json/jwt/v1/verify` – Verify token and get user info
 * `POST /wp-json/jwt/v1/logout` – Logout and revoke refresh token

### Security

 * **Stateless Authentication** – JWT tokens contain all necessary information
 * **HTTPOnly Cookies** – Refresh tokens stored securely, inaccessible to JavaScript
 * **Token Rotation** – Refresh tokens automatically rotate on use
 * **Configurable Expiration** – Set custom expiration times
 * **IP & User Agent Tracking** – Additional security metadata

### Support

For support and documentation, visit: https://github.com/juanma-wp/jwt-auth-pro-
wp-rest-api

### Privacy Policy

This plugin stores user session data including IP addresses and user agent strings
for security purposes. This data is used solely for authentication and security 
monitoring.

## Ảnh màn hình

[⌊Admin configuration interface⌉⌊Admin configuration interface⌉[

Admin configuration interface

[⌊Security settings panel⌉⌊Security settings panel⌉[

Security settings panel

[⌊Token management dashboard⌉⌊Token management dashboard⌉[

Token management dashboard

## Cài đặt

 1. Upload the plugin files to `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Go to Settings  JWT Auth Pro to configure the plugin

#### Configuration

**Via wp-config.php (Recommended for production):** `php define('JWT_AUTH_PRO_SECRET','
your-super-secret-key-here'); define('JWT_AUTH_PRO_ACCESS_TTL', 3600); // 1 hour
define('JWT_AUTH_PRO_REFRESH_TTL', 2592000); // 30 days`

**Via WordPress Admin:** Go to Settings  JWT Auth Pro to configure: * JWT Secret
Key * Token expiration times * CORS allowed origins * Debug logging

## Hỏi đáp

### How is this different from other JWT plugins?

JWT Auth Pro implements modern security best practices with short-lived access tokens
and secure refresh tokens, unlike basic JWT plugins that use long-lived tokens vulnerable
to XSS attacks.

### Is HTTPS required?

HTTPS is strongly recommended for HTTPOnly cookies to work securely, especially 
in production environments.

### Can I use this with mobile apps?

Yes! JWT Auth Pro is designed specifically for modern applications including mobile
apps, SPAs, and API integrations.

### How do I revoke a user’s session?

You can revoke individual user sessions through the admin interface or programmatically
using the provided API endpoints.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“JuanMa JWT Auth Pro” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ JuanMa Garrido ](https://profiles.wordpress.org/juanmaguitar/)

[Dịch “JuanMa JWT Auth Pro” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/juanma-jwt-auth-pro)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/juanma-jwt-auth-pro/), check
out [SVN repository](https://plugins.svn.wordpress.org/juanma-jwt-auth-pro/), hoặc
theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/juanma-jwt-auth-pro/)
qua [RSS](https://plugins.trac.wordpress.org/log/juanma-jwt-auth-pro/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.0.0

 * Initial release
 * JWT authentication with access and refresh tokens
 * HTTPOnly cookie support for secure refresh tokens
 * Automatic token rotation
 * CORS configuration
 * Admin interface for plugin configuration
 * Database session tracking
 * IP and User Agent metadata for enhanced security

## Meta

 *  Phiên bản **1.2.1**
 *  Cập nhật lần cuối **11 tháng trước**
 *  Số lượt cài đặt **Ít hơn 10**
 *  Phiên bản WordPress ** 5.6 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.8.12**
 *  Phiên bản PHP ** 7.4 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/juanma-jwt-auth-pro/)
 * Thẻ
 * [authentication](https://vi.wordpress.org/plugins/tags/authentication/)[jwt](https://vi.wordpress.org/plugins/tags/jwt/)
   [rest-api](https://vi.wordpress.org/plugins/tags/rest-api/)[security](https://vi.wordpress.org/plugins/tags/security/)
   [tokens](https://vi.wordpress.org/plugins/tags/tokens/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/juanma-jwt-auth-pro/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

[Your review](https://wordpress.org/support/plugin/juanma-jwt-auth-pro/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/juanma-jwt-auth-pro/reviews/)

## Những người đóng góp

 *   [ JuanMa Garrido ](https://profiles.wordpress.org/juanmaguitar/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/juanma-jwt-auth-pro/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://github.com/juanma-wp/jwt-auth-pro-wp-rest-api)