This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Assumes https://github.com/Spomky-Labs/jose library is installed: composer require spomky-labs/jose | |
* Check token claims guide: https://github.com/Spomky-Labs/jose/blob/master/doc/operation/Check.md | |
*/ | |
use Jose\Checker\AudienceChecker; | |
use Jose\Factory\CheckerManagerFactory; | |
$claim_checker_list = [ | |
// 'exp', // We should enable 'exp', but this example will fail as the token has already expired |