# waiting-for-dev/devise-jwt

JWT token authentication with devise and rails

Repository: https://github.com/waiting-for-dev/devise-jwt
Canonical: https://ross.abutalabs.com/products/devise-jwt
Language: Ruby
License: MIT
License Family: permissive
Topics: devise, jwt, rails, ruby-gem, authentication
Last push: 2026-06-22T16:05:04+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 88, release rhythm 34, longevity 100
- inputs: {"age_days": 3520, "days_push": 72, "days_rel": 231, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1292, forks 130 (observed 2026-08-28T04:04:16.035152+00:00)

## What it is
A Ruby gem that extends Devise to authenticate Rails users with JWT tokens instead of cookies, built as a thin layer over warden-jwt_auth. It follows a secure-by-default principle with mandatory token expiration and pluggable revocation strategies.

## Use cases
- add JWT authentication to a Rails app using Devise
- authenticate a Rails API with stateless tokens
- replace cookie-based sessions with JWT tokens
- implement token revocation with denylist or allowlist strategies
- secure a mobile or SPA client talking to a Rails backend

## When to choose
- you already use Devise and need token-based auth for an API or SPA
- you want a secure-by-default JWT setup with revocation strategies
- you need a drop-in replacement for cookie sessions in Rails

## When to avoid
- you need users to never sign out or want refresh-token flows like OAuth2
- your Rails app can rely on standard cookie-based sessions
- you are not using Devise or Rails/Rack

## Facets
- artifact type: library
- maturity: active
- function: auth, middleware, security
- domain: web-development, backend, security, apis
- platform: ruby
- tags: jwt, devise, rails, token-authentication, ruby-gem, warden, web-server

## Member repositories
- waiting-for-dev/devise-jwt (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.035152+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:54:45.796203+00:00, confidence not recorded.
  - readme: https://github.com/waiting-for-dev/devise-jwt (fetched 2026-08-28T04:04:16.035152+00:00, sha 6f1af44f6861)
- Data as of 2026-08-30T08:39:29.467469+00:00.
