#332332nd of 358 in Backends, databases and hosting

spring-boot-jwt

Spring Boot JWT auth service with rotating, revocable refresh tokens

Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Releases and problems feed (RSS)

Stars
1.7k
License
MIT
Last commit
Oct 2026
Language
Java
Stars, last 30 weeks+32
28 Apr 2026: 1,658 stars5 May 2026: 1,661 stars12 May 2026: 1,661 stars19 May 2026: 1,662 stars26 May 2026: 1,662 stars2 Jun 2026: 1,662 stars9 Jun 2026: 1,662 stars16 Jun 2026: 1,663 stars23 Jun 2026: 1,665 stars30 Jun 2026: 1,668 stars7 Jul 2026: 1,669 stars14 Jul 2026: 1,672 stars21 Jul 2026: 1,675 stars28 Jul 2026: 1,676 stars4 Aug 2026: 1,679 stars11 Aug 2026: 1,680 stars18 Aug 2026: 1,680 stars25 Aug 2026: 1,682 stars1 Sept 2026: 1,683 stars8 Sept 2026: 1,683 stars15 Sept 2026: 1,683 stars22 Sept 2026: 1,683 stars29 Sept 2026: 1,685 stars6 Oct 2026: 1,685 stars13 Oct 2026: 1,686 stars20 Oct 2026: 1,687 stars27 Oct 2026: 1,687 stars3 Nov 2026: 1,687 stars10 Nov 2026: 1,688 stars17 Nov 2026: 1,689 stars24 Nov 2026: 1,690 stars

1,658 on 28 Apr 20261,690 on 24 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

A Spring Boot 3.5 / Java 17 REST API that implements signup, signin, refresh and logout using Spring Security. Access tokens are stateless HMAC-SHA256 JWTs (JJWT 0.12.x); refresh tokens are opaque, stored as SHA-256 hashes, single-use, with reuse detection that revokes all of a user's tokens. Runs on in-memory H2 by default, with MySQL as an option, and exposes SpringDoc OpenAPI docs.

Who it is for: Java developers needing a reference JWT auth backend with Spring Security

Strengths

  • Refresh tokens are hashed at rest, single-use, with reuse detection revoking all user tokens
  • Ordinary requests need no database lookup for authentication; only refresh hits the DB
  • Role checks via @PreAuthorize with ROLE_ADMIN and ROLE_CLIENT, plus OpenAPI docs
  • Small, readable code layout with a controller test and CI workflow

Weaknesses

  • Access tokens cannot be revoked before expiry; only lifetime tuning limits exposure
  • Default config is H2 in-memory with create-drop schema, not production-ready
  • H2 console is permitted in security config and must be disabled for production
  • No tagged releases; it is a demo service, not a packaged library

What it needs

  • no GPU
  • Docker
  • Needs Java 17, H2 (default, in-memory), MySQL (optional)
  • port 8080

Also in Backends, databases and hosting

See all 358
Also in Backends, databases and hosting
RankProjectScore
#330dbGo data access layer with one API for SQL databases and MongoDB Live demo ↗ (opens in a new tab)3.7k starsMIT39 out of 100
#331devise_token_authToken-based authentication gem for Rails APIs, built on Devise and OmniAuth Live demo ↗ (opens in a new tab)3.6k starsWTFPL39 out of 100
#333filodbDistributed in-memory time series database with PromQL, fed from Kafka1.5k starsApache-2.039 out of 100
#334dicedbValkey fork that spills evicted keys to disk via RocksDB10.8k starscustom license37 out of 100
#335flask-sqlalchemyFlask extension that integrates SQLAlchemy with app config and sessions4.3k starsBSD-3-Clause36 out of 100