__construct() __construct(string $scene = 'default') LoginUser constructor. Parameters string $scene 场景,默认为default
check() check() : boolean 验证token Throws \Psr\Container\ContainerExceptionInterface \Psr\Container\NotFoundExceptionInterface Returns boolean
getToken() getToken(array $user) : string 获取Token Parameters array $user Throws \Psr\SimpleCache\InvalidArgumentException Returns string