# jwt-auth

> JSON Web Token authentication for Laravel and Lumen

Source: https://talira.ai/catalog/jwt-auth-j3eeh8w4
Every listing: https://talira.ai/catalog.md

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

jwt-auth (tymon/jwt-auth) adds JSON Web Token authentication to [Laravel](https://talira.ai/catalog/laravel-4d4w140j.md) and Lumen. It issues and checks tokens as a Laravel auth guard, signed with a shared secret or a key pair, with configurable time to live and refresh time to live, required and persistent claims, a leeway for clock skew, and a blacklist that invalidates tokens with a grace period.

## Links

- Website: https://jwt-auth.com/
- GitHub: https://github.com/tymondesigns/jwt-auth

## Problems it solves

- authenticate users of my Laravel API with JSON Web Tokens instead of sessions
- refresh and revoke API tokens in a Laravel app
- sign Laravel API tokens with an RSA key pair

## Features

- Laravel auth guard that issues and checks JSON Web Tokens
- signing with a shared secret or a public and private key pair
- configurable token time to live and refresh time to live
- required and persistent claims, and a lock on the token subject
- token blacklist with a grace period
- leeway for clock skew

## Trust

Overall: 0.50 out of 1.
Signals: maintenance 0.46, adoption 0.81, momentum 0.57, community 0.77, backing 0.30, extensibility 0.00.

- last commit 36 days ago
- 2 commits in the last 90 days
- latest release 2.3.1 36 days ago
- 11.5k GitHub stars
- 82 contributors
- backed by Sean Tymon

## Related

- Works with [Laravel](https://talira.ai/catalog/laravel-4d4w140j.md)

## Alternatives

- [lcobucci/jwt](https://talira.ai/catalog/lcobucci-jwt-by7h6zsk.md): Framework-agnostic PHP library to issue, parse and validate JSON Web Tokens
- [PHP-JWT](https://talira.ai/catalog/php-jwt-0479yw0g.md): Encode and decode JSON Web Tokens in PHP

## Sources

[^1]: https://github.com/tymondesigns/jwt-auth/blob/2.x/config/config.php (checked 29 Nov 2026)
[^2]: https://github.com/tymondesigns/jwt-auth/blob/2.x/LICENSE (checked 29 Nov 2026)
[^3]: https://github.com/tymondesigns/jwt-auth/blob/2.x/composer.json (checked 29 Nov 2026)
[^4]: https://github.com/tymondesigns/jwt-auth/blob/2.x/README.md (checked 29 Nov 2026)
