private readonly AbstractExtensionDataProvider
$extensionDataProvider ) { } #[Route(path: '/api/_action/store/login', name: 'api.custom.store.login', methods: ['POST'])]
public function login(Request
$request, Context
$context): JsonResponse
{ $shopwareId =
$request->request->
get('shopwareId'
);
$password =
$request->request->
get('password'
);
if (!\
is_string($shopwareId) || !\
is_string($password)) { throw new StoreInvalidCredentialsException();
} try { $this->storeClient->
loginWithShopwareId($shopwareId,
$password,
$context);
} catch (ClientException
$exception) { throw new StoreApiException($exception);
} return new JsonResponse();
}