mirror of
https://gitee.com/ctexthuang/hyperf-micro-svc.git
synced 2026-02-08 18:30:16 +08:00
34 lines
779 B
PHP
34 lines
779 B
PHP
<?php
|
|
/**
|
|
* This service file is part of item.
|
|
*
|
|
* @author ctexthuang
|
|
* @contact ctexthuang@qq.com
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Service\Admin\AdminUser;
|
|
|
|
use App\Lib\Jwt\RequestScopedTokenTrait;
|
|
use App\Service\Admin\BaseAdminService;
|
|
use Lcobucci\JWT\Token\RegisteredClaims;
|
|
|
|
class UserService extends BaseAdminService
|
|
{
|
|
use RequestScopedTokenTrait;
|
|
|
|
public function handle(): array
|
|
{
|
|
var_dump($this->getToken()->claims()->all());
|
|
var_dump($this->getToken()->claims()->get(RegisteredClaims::ID));
|
|
var_dump($this->getToken()->claims()->get(RegisteredClaims::AUDIENCE));
|
|
|
|
return $this->adminReturn->success();
|
|
}
|
|
|
|
public function refresh(): array
|
|
{
|
|
return $this->adminReturn->success();
|
|
}
|
|
} |