Open-source authentication and authorization infrastructure built on OIDC and OAuth 2.1, with multi-tenancy, enterprise SSO and RBAC for SaaS and AI apps.
tymondesigns/jwt-auth
JWT authentication package for Laravel and Lumen that issues and validates JSON Web Tokens for API login.
- Stars
- 11,485
- Forks
- 1,536
- Open issues
- 612
- Last commit
- 13 days ago
What is it?
jwt-auth is a PHP package that adds JSON Web Token (JWT) authentication to Laravel and Lumen applications. It is typically used to secure stateless APIs, where a client logs in once, receives a signed token, and sends that token with later requests instead of relying on server-side sessions.
The package is installed through Composer and works as a guard for Laravel's authentication system. It provides methods to create tokens for a user, validate incoming tokens, refresh them, and invalidate them, and it can be applied to routes through middleware.
The project's documentation is hosted at jwt-auth.com and covers installation, configuration, and usage details.
Key features
- 01Issues signed JWTs for authenticated users in Laravel and Lumen.
- 02Integrates with Laravel's auth guard system.
- 03Supports token refresh and invalidation.
- 04Provides middleware for protecting routes.
Use cases
- Securing a stateless REST API built on Laravel.
- Authenticating mobile or single-page app clients without server sessions.
- Adding token-based login to an existing Lumen service.
In collections
Topics
FAQ
- What is jwt-auth?
- JWT authentication package for Laravel and Lumen that issues and validates JSON Web Tokens for API login. jwt-auth is a PHP package that adds JSON Web Token (JWT) authentication to Laravel and Lumen applications. It is typically used to secure stateless APIs, where a client logs in once, receives a signed token, and sends that token with later requests instead of relying on server-side sessions.
- Is jwt-auth free to use? What license does it have?
- jwt-auth is open source under the MIT license. Check the license terms before using it in commercial products.
- Is jwt-auth still maintained?
- Actively maintained. The last commit to jwt-auth was on Oct 24, 2026.
- What can I use jwt-auth for?
- Securing a stateless REST API built on Laravel. Authenticating mobile or single-page app clients without server sessions. Adding token-based login to an existing Lumen service.
- Where can I get jwt-auth?
- The source code and installation instructions are on GitHub: https://github.com/tymondesigns/jwt-auth
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Java library for creating, parsing and verifying JSON Web Tokens (JWT) and JSON Web Keys (JWK) on the JVM and Android.
A Go-based authentication and user management server that issues JWTs, powering Supabase Auth.
Official JavaScript SDKs for Clerk, a hosted service for user sign-up, sign-in and profile management in web apps.
A lightweight, Rust-based Identity Provider for Single Sign-On via OpenID Connect, OAuth 2, and PAM, with a strong focus on passkeys.
A Java authentication and authorization framework covering login, permissions, SSO, OAuth2, JWT and API signing for Spring and other web stacks.