Empathy PHP Framework - ELib-JWT

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();

Licence

Empathy and officially released extension libraries are now distributed under an MIT license. See LICENSE.

 

 

Comments


No comments.

 

 

Add a comment…

Allowed HTML tags within comments are; 'a', 'img', 'p' and 'pre'.

You can give 'pre' tags a language for the class name. This will apply syntax highlighting through Prism for that language.

    <pre class="bash">
    echo whoami;
    </pre>

Produces…

echo whoami;

 

captcha