# ruby-jwt

> Ruby implementation of JSON Web Tokens (RFC 7519): the jwt gem

Source: https://talira.ai/catalog/ruby-jwt-h3ewy2zg
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [security / auth / libraries](https://talira.ai/categories/security/auth/libraries), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Supports: [JWT](https://talira.ai/standards/jwt.md)[^1]
- Backed by: [ruby-jwt](https://talira.ai/orgs/ruby-jwt.md)

ruby-jwt (the jwt gem) is a Ruby implementation of the RFC 7519 JSON Web Token standard. It signs, encodes and verifies tokens with the NONE, HMAC, RSASSA, ECDSA and RSASSA-PSS algorithms through OpenSSL, takes EdDSA through the jwt-eddsa gem, imports and uses JWKs, and can be extended with other algorithm implementations.

## Links

- GitHub: https://github.com/jwt/ruby-jwt
- Docs: https://ruby-jwt.org/

## Problems it solves

- sign and verify JWTs in a Ruby app
- decode a JWT from an Authorization header in Rails
- verify tokens with a JWK set in Ruby

## Features

- Encodes, signs and verifies JSON Web Tokens (RFC 7519)
- HMAC, RSASSA, ECDSA and RSASSA-PSS through OpenSSL; EdDSA through jwt-eddsa
- Imports JWKs to sign and verify tokens
- Pluggable algorithm implementations

## Limitations

- Callers must pass the expected algorithm to JWT.decode; picking it dynamically lets an attacker bypass verification.[^1]

## Trust

Overall: 0.64 out of 1.
Signals: maintenance 0.93, adoption 0.71, momentum 0.40, community 0.88, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 50 commits in the last 90 days
- latest release v3.3.2 2 days ago
- 3.7k GitHub stars
- 157 contributors
- has a company behind it

## Alternatives

- [OAuth (Ruby)](https://talira.ai/catalog/oauth-ruby-1zt3nxrk.md): OAuth 1.0 and 1.0a clients and servers in Ruby
- [OAuth2 (Ruby)](https://talira.ai/catalog/oauth2-ruby-ev239n8v.md): A Ruby gem for OAuth 2.0 clients, including OAuth 2.1 and OpenID Connect

## Sources

[^1]: https://github.com/jwt/ruby-jwt (checked 28 Nov 2026)
[^2]: https://github.com/jwt/ruby-jwt/blob/main/LICENSE (checked 28 Nov 2026)
