throw new \
RuntimeException('First run wizard requires a logged in user'
);
} $response =
$this->client->
request( Request::METHOD_POST,
'/swplatform/firstrunwizard/login',
[ 'json' =>
[ 'shopwareId' =>
$shopwareId,
'password' =>
$password,
],
'query' =>
$this->optionsProvider->
getDefaultQueryParameters($context),
] );
return json_decode($response->
getBody()->
getContents(), true, flags: \JSON_THROW_ON_ERROR
);
} /**
* @return array{shopUserToken: array{token: string, expirationDate: string}, shopSecret: string}
*/
public function upgradeAccessToken(Context
$context): array
{