Tagged articles
Refresh Token
26 articles · Page 1 of 1
This article explains JWT structure, its stateless design, four scenarios where pure JWT fails (account theft, user ban, password change, token expiry), solutions using Redis blacklist or whitelist, double-token refresh, Redis reliability, when pure JWT fits, and how to articulate trade-offs in interviews.
AuthenticationBlacklistInterview
0 likes · 9 min read

This tutorial builds a production-ready JWT authentication system using Spring Boot 3 and Spring Security 6, covering RBAC database design, token issuance and validation, method-level permission annotations, refresh-token rotation, and Redis-based logout blacklisting with complete code examples.
AuthenticationAxiosBlacklist
0 likes · 38 min read

This article explains why silent token refresh is needed to prevent sudden logouts, demonstrates backend automatic token renewal using Java JWT (jjwt 0.9.1) with Maven dependencies, details the dual-token (AT/RT) frontend pattern for security and convenience, and discusses handling edge cases like long-idle form submissions that cause 401 errors.
AuthenticationJWTJava
0 likes · 10 min read

This article explains why seamless token refresh prevents sudden logouts, compares backend automatic token renewal with frontend dual-token (access/refresh) approaches, provides Java JWT implementation code with expiration calculations, and discusses handling edge cases like long-form submissions where no requests are sent before token expiry.
AuthenticationFrontend-Backend IntegrationJWT
0 likes · 10 min read

This article walks through building a complete JWT-based authentication and authorization system with Spring Boot 3 and Spring Security 6, covering RBAC database design, token issuance and validation, filter chain configuration, permission annotations, refresh tokens, logout blacklisting, and Vue 3 frontend integration.
AuthenticationJWTRBAC
0 likes · 33 min read

The article explains how replacing centralized session lookups with JWT-based local verification can cut authentication latency from 15 ms to 0.3 ms—a roughly 50‑fold improvement—while describing a double‑token strategy, its refresh flow, security best practices, and trade‑offs such as delayed revocation.
JWTRefresh Tokenaccess token
0 likes · 6 min read

This article explains how to implement a double‑token JWT authentication scheme in Spring Boot 3.x, using short‑lived AccessTokens for API security and long‑lived RefreshTokens for seamless background renewal, while addressing token revocation, refresh thresholds, blacklist handling, and multi‑device considerations.
AuthenticationBackendJWT
0 likes · 23 min read

The article explains the inherent trade‑off of a single JWT’s expiration time, shows how using short‑lived Access Tokens together with long‑lived Refresh Tokens resolves both security and user‑experience issues, and provides detailed backend and frontend implementation guidance.
AuthenticationJWTOAuth 2.0
0 likes · 11 min read

This tutorial explains the JWT structure, shows how to add custom claims such as user ID, department and roles, implements token blacklisting for logout, handles refresh token logic, and provides step‑by‑step code and testing instructions for a Spring Security OAuth2 authentication system.
JWTOAuth2Redis
0 likes · 16 min read

This comprehensive guide explains why many teams struggle with dual‑token implementations, outlines the three core goals of the mechanism, details threat modeling, design principles, data modeling, JWT claim choices, atomic refresh rotation with Redis Lua, and provides production‑ready Spring Boot code, observability, scaling and security hardening recommendations.
AuthenticationJWTRedis
0 likes · 35 min read

Although JWT is marketed as a stateless, database‑free authentication method, real‑world applications often store token identifiers in Redis to handle logout, password changes, and token renewal, which reintroduces state and a database lookup.
AuthenticationJWTRedis
0 likes · 6 min read

The article explains JWT fundamentals, why pure stateless tokens cannot be revoked, compares blacklist and whitelist Redis strategies, discusses token renewal with double‑token design, and shows how to articulate the right answer in an interview.
BlacklistJWTRedis
0 likes · 13 min read

Token expiration can be handled with three main strategies—frontend‑driven periodic refresh, backend sliding‑window renewal, and the industry‑standard double‑token (access + refresh) scheme—each balancing implementation simplicity, user experience, and security, with the double‑token approach offering the most robust solution.
AuthenticationRefresh TokenSecurity
0 likes · 7 min read

This article explains the double token (Access Token + Refresh Token) authentication model, compares it with single‑token approaches, outlines production‑grade security measures, recommends token lifetimes, and provides a complete Java Spring Boot implementation with code examples.
JWTRefresh TokenSpring Boot
0 likes · 12 min read

This article explains the roles of access and refresh tokens, their lifecycle, and the step‑by‑step process by which a client obtains, uses, and renews tokens to maintain seamless authentication while enhancing security.
AuthenticationRefresh TokenSecurity
0 likes · 5 min read

This article critically examines JWT authentication, comparing it with Session and traditional token approaches, detailing its stateless advantage, CSRF implications, token revocation challenges, refresh strategies, size overhead, and concrete scenarios where JWT fits or fails.
AuthenticationBackend SecurityCSRF
0 likes · 15 min read

This article explains the double token (Access and Refresh) authentication mechanism, detailing its core principles, security benefits, and step‑by‑step implementation with Express on the backend and Vue on the frontend, including token issuance, verification, rotation, middleware, and client‑side handling.
ExpressRefresh Tokenaccess token
0 likes · 17 min read

This guide shows how to integrate Spring Security 6 and OAuth2 in Spring Boot 3.x to implement three token renewal strategies—refresh tokens, sliding expiration, and silent renewal—while adding production‑grade security features such as Redis blacklisting and configurable thresholds.
OAuth2Refresh TokenSecurity
0 likes · 8 min read

This guide explains how to secure FastAPI applications using OAuth2 with JWT, role‑based access control, refresh‑token workflows, multi‑factor authentication, and integration with external providers such as Auth0, Keycloak, and Firebase.
AuthenticationFastAPIJWT
0 likes · 9 min read

This guide explains the JWT standard, its three‑part structure, the authentication flow, and a double‑token solution using short‑lived access tokens and long‑lived refresh tokens, with full PHP code examples, middleware interception, configuration, and client‑side renewal logic.
AuthenticationBackend SecurityJWT
0 likes · 12 min read

The article examines JWT's benefits such as statelessness and CSRF protection, then details its drawbacks—including revocation difficulty, XSS risk, and token size—and presents practical solutions like blacklists, short lifetimes, and refresh‑token strategies, helping readers decide when to use JWT versus session‑based authentication.
AuthenticationCSRFJWT
0 likes · 14 min read

This article provides a comprehensive introduction to the OAuth 2.0 protocol, covering its core concepts, authorization flow, four grant types (authorization code, implicit, resource owner password credentials, client credentials), request and response parameters, token handling, and practical examples with code snippets.
AuthenticationGrant TypesOAuth2.0
0 likes · 22 min read

This article provides a comprehensive introduction to the OAuth 2.0 protocol, explaining its core concepts, the roles of resource owner, client, authorization server and resource server, and detailing the four grant types—authorization code, implicit, resource‑owner password credentials, and client credentials—along with token request/response formats and refresh token usage.
Grant TypesOAuth2.0Refresh Token
0 likes · 23 min read

This article explains the OAuth 2.0 protocol, describes its four grant types, focuses on the Authorization Code and Implicit flows, outlines the involved roles, token types, client registration steps, and provides detailed request‑response examples for both grant types.
Authorization CodeImplicit GrantOAuth 2.0
0 likes · 8 min read

This article explains why JWT has become the preferred method for session management in modern RESTful and SPA architectures, detailing the roles, lifecycles, and implementation steps of access_token and refresh_token, and providing concrete API examples for login and token renewal.
API authenticationJWTRefresh Token
0 likes · 6 min read

This article explains the OAuth protocol, its role in providing secure third‑party access to user resources, describes the overall authorization architecture, outlines the involved parties and step‑by‑step flow, and details the four main grant types along with token refresh mechanisms.
APIGrant TypesOAuth
0 likes · 6 min read
