PHP code example of fidelize / jwt-auth-multiple-keys
1. Go to this page and download the library: Download fidelize/jwt-auth-multiple-keys 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/ */
fidelize / jwt-auth-multiple-keys example snippets
return [
// ...
'providers' => [
// ...
'jwt' => 'Fidelize\JWTAuth\JwtAdapter',
'auth' => 'Fidelize\JWTAuth\AuthAdapter',
// ...
],
'keys_directory' => '/path/yo/your/keys/directory/'
];