|
|
@ -2,12 +2,13 @@ |
|
|
declare (strict_types=1); |
|
|
declare (strict_types=1); |
|
|
namespace app\api\service; |
|
|
namespace app\api\service; |
|
|
|
|
|
|
|
|
use app\api\model\User; |
|
|
use Lcobucci\JWT\Configuration; |
|
|
use Lcobucci\JWT\Parser; |
|
|
|
|
|
use Lcobucci\JWT\Builder; |
|
|
|
|
|
use Lcobucci\JWT\Signer\Hmac\Sha256; |
|
|
use Lcobucci\JWT\Signer\Hmac\Sha256; |
|
|
use Lcobucci\JWT\Signer\Key\InMemory; |
|
|
use Lcobucci\JWT\Signer\Key\InMemory; |
|
|
use Lcobucci\JWT\Token; |
|
|
use DateTimeImmutable; |
|
|
|
|
|
use Lcobucci\JWT\Token\Plain; |
|
|
|
|
|
use Lcobucci\JWT\Validation\RequiredConstraintsViolated; |
|
|
|
|
|
use Lcobucci\JWT\Validation\Constraint\SignedWith; |
|
|
/** |
|
|
/** |
|
|
* 用户表 |
|
|
* 用户表 |
|
|
*/ |
|
|
*/ |
|
|
|