@aws-amplify/core
Version:
Core category of aws-amplify
35 lines (32 loc) • 1.48 kB
JavaScript
import '../../../../types/errors.mjs';
import '../../../../errors/errorHelpers.mjs';
import { jitteredBackoff } from '../../../../clients/middleware/retry/jitteredBackoff.mjs';
import { getRetryDecider } from '../../../../clients/middleware/retry/defaultRetryDecider.mjs';
import '../../../../utils/getClientInfo/getClientInfo.mjs';
import '../../../../utils/retry/retry.mjs';
import '../../../../parseAWSExports.mjs';
import 'uuid';
import '../../../../singleton/Auth/utils/errorHelpers.mjs';
import '@aws-crypto/sha256-js';
import '@smithy/util-hex-encoding';
import '../../../../Platform/index.mjs';
import '../../../../Platform/types.mjs';
import '../../../../BackgroundProcessManager/types.mjs';
import '../../../../Reachability/Reachability.mjs';
import '../../../../Hub/index.mjs';
import '../../../../utils/sessionListener/index.mjs';
import { parseJsonError } from '../../../../clients/serde/json.mjs';
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
/**
* The service name used to sign requests if the API requires authentication.
*/
const COGNITO_IDENTITY_SERVICE_NAME = 'cognito-identity';
const DEFAULT_SERVICE_CLIENT_API_CONFIG = {
service: COGNITO_IDENTITY_SERVICE_NAME,
retryDecider: getRetryDecider(parseJsonError),
computeDelay: jitteredBackoff,
cache: 'no-store',
};
export { COGNITO_IDENTITY_SERVICE_NAME, DEFAULT_SERVICE_CLIENT_API_CONFIG };
//# sourceMappingURL=constants.mjs.map