$accessTokenResponse =
$this->frwClient->
frwLogin($shopwareId,
$password,
$context);
$accessToken =
$this->
createAccessTokenStruct($accessTokenResponse,
$accessTokenResponse['firstRunWizardUserToken'
]);
$this->
updateFrwUserToken($context,
$accessToken);
} public function upgradeAccessToken(Context
$context): void
{ $accessTokenResponse =
$this->frwClient->
upgradeAccessToken($context);
$accessToken =
$this->
createAccessTokenStruct($accessTokenResponse,
$accessTokenResponse['shopUserToken'
]);
$this->storeService->
updateStoreToken($context,
$accessToken);
$this->configService->
set(StoreRequestOptionsProvider::CONFIG_KEY_STORE_SHOP_SECRET,
$accessToken->
getShopSecret());
$this->
removeFrwUserToken($context);
} public function finishFrw(bool
$failed, Context
$context): void
{ $currentState =
$this->
getFrwState();
if ($failed) { $newState = FrwState::
failedState(null,
$currentState->
getFailureCount() + 1
);
} else {