PHP code example of jasonroyle / li3_jwt
1. Go to this page and download the library: Download jasonroyle/li3_jwt library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jasonroyle / li3_jwt example snippets
/**
* Add some plugins:
*/
Libraries::add('li3_jwt');
/**
* Load composer libraries
*/
use lithium\storage\Session;
Session::config(['default' => [
'adapter' => 'Token',
'header' => 'Authorization',
'prefix' => 'Bearer ',
'strategies' => ['Jwt' => [
'secret' => '***SECRET***'
]]
]]);