public function toUser($token = false)
    {
        $payload = $this->getPayload($token);

        if (! $user = $this->user->getBy($this->identifier, $payload['sub'])) {
            return false;
        }

        return $user;
    }
public function toUser($token = false)
    {
        $payload = $this->getPayload($token);

        if (! $user = $this->user->getBy($this->identifier, $payload['sub'])) {
            return false;
        }

        return $user;
    }
public function toUser ( $ token = false ) { $ payload = $ this -> getPayload ( $ token ) ; if ( ! $ user = $ this -> user -> getBy ( $ this -> identifier , $ payload [ 'sub' ] ) ) { return false ; } return $ user ; }
Find a user using the user identifier in the subject claim.

@param bool|string $token

@return mixed
Find a user using the user identifier in the subject claim .