vkoori/jwt

There is no license information available for the latest version (1.0.0) of this package.

Integration of adhocore/jwt library for laravel/lumen.

1.0.0 2023-03-23 05:21 UTC

This package is auto-updated.

Last update: 2024-04-23 12:45:07 UTC


README

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: '');

adhocore/jwt documention

Powered By Koorosh safe Ashrafi