return new JsonResponse();
} #[Route(path: '/api/_action/store/checklogin', name: 'api.custom.store.checklogin', methods: ['POST'])]
public function checkLogin(Context
$context): Response
{ try { // Throws StoreTokenMissingException if no token is present
$this->
getUserStoreToken($context);
$userInfo =
$this->storeClient->
userInfo($context);
return new JsonResponse([ 'userInfo' =>
$userInfo,
]);
} catch (StoreTokenMissingException|ClientException
) { return new JsonResponse([ 'userInfo' => null,
]);
} }