-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade lcobucci/jwt to 4.0 and using the new features. JWT doesn't use Claim anymore but DataSet object instead. JWTHandler requires Configuration instead of Builder, and Signer and registers a Key object instead of using the secret directly. Requires nesbot/carbon ^2.0 for testability.
- Loading branch information
Showing
14 changed files
with
662 additions
and
417 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ report/ | |
.idea/ | ||
composer.lock | ||
*.swp | ||
.phpunit.result.cache |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace SPie\LaravelJWT\Contracts; | ||
|
||
use Lcobucci\JWT\Token; | ||
|
||
/** | ||
* Interface Validator | ||
* | ||
* @package SPie\LaravelJWT\Contracts | ||
*/ | ||
interface Validator | ||
{ | ||
/** | ||
* @param Token $token | ||
* | ||
* @return bool | ||
*/ | ||
public function validate(Token $token): bool; | ||
} |
This file contains 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
Oops, something went wrong.