mikejw / elib-jwt
JWT Support for empathy
dev-master
2024-12-01 06:35 UTC
Requires
- firebase/php-jwt: dev-main
- mikejw/elib-base: dev-master
This package is auto-updated.
Last update: 2024-12-31 06:52:14 UTC
README
Licence
Empathy and officially released extension libraries are now distributed under an MIT license. See LICENSE.
JWT Support for Empathy Applications using https://github.com/firebase/php-jwt.
This extension depends on elib-base.
The JWT
service will automatically be enabled for your application.
(See services.php
).
The two methods available with this extension are:
<php
$token = DI::getContainer()->get('JWT')->generate();
and
<php
$token = DI::getContainer()->get('JWT')->tryAuthenticate();