Download the PHP package juniorfontenele/laravel-secure-jwt without Composer
On this page you can find all versions of the php package juniorfontenele/laravel-secure-jwt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download juniorfontenele/laravel-secure-jwt
More information about juniorfontenele/laravel-secure-jwt
Files in juniorfontenele/laravel-secure-jwt
Package laravel-secure-jwt
Short Description A laravel wrapper for firebase/php-jwt package
License MIT
Homepage https://github.com/juniorfontenele/laravel-secure-jwt
Informations about the package laravel-secure-jwt
Laravel Secure JWT
A secure and flexible JWT (JSON Web Token) implementation for Laravel applications. This package provides a robust wrapper around firebase/php-jwt with additional security features like nonce validation, blacklisting, and comprehensive claim validation.
Features
- Secure JWT generation and validation
- Token blacklisting to revoke tokens
- Nonce validation to prevent token replay attacks
- Comprehensive claim validation (expiration, issuance time, not before)
- Custom claims support
- Laravel Cache integration for token storage
Installation
You can install the package via composer:
The package will automatically register its service provider if you're using Laravel.
Configuration
Publish the configuration file:
This will create a config/secure-jwt.php
file with the following options:
Usage
Creating a JWT
Validating a JWT
Blacklisting a Token
Advanced Usage
Using Asymmetric Keys (RS256, ES256, etc.)
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Junior Fontenele
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-secure-jwt with dependencies
firebase/php-jwt Version ^6.11
illuminate/support Version ^12
ramsey/uuid Version ^4.7