vkoori/jwt
Installation
composer require vkoori/jwt
Doc
By using this library, in addition to the features of adhocore/jwt, you can also benefit from blacklist and refresh token.
You need to add the following to the env file:
JWT_BLACK_LIST=false
JWT_KEY=secret
JWT_ALGO=HS256
JWT_MAX_AGE=3600
JWT_LEEWAY=0
Sample
(new JWT)->encode(payload: [], header: []);
(new JWT)->decode(token: '', verify: true);
(new JWT)->refresh(token: '');
(new JWT)->expire(token: '');
| Powered By |
|---|
Related Packages
francescomalatesta/laravel-api-boilerplate-jwt
An API Boilerplate to create a ready-to-use REST API in seconds.
7,457
1,174
auth0/login
Auth0 Laravel SDK. Straight-forward and tested methods for implementing authenti...
5,378,788
274
johnturingan/laravel-jwt-auth
JSON Web Token Authentication for Laravel 4 and 5. Modification from Tymon's jwt...
4,455
0