token->authType === AuthType::OAuth; } public function isLegacy(): bool { return $this->token->authType === AuthType::Legacy; } }