@aws-amplify/auth 6.12.4 → 6.12.5-unstable.3c4d29e.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/client/apis/associateWebAuthnCredential.js +1 -2
- package/dist/cjs/client/apis/associateWebAuthnCredential.js.map +1 -1
- package/dist/cjs/client/apis/deleteWebAuthnCredential.js +1 -2
- package/dist/cjs/client/apis/deleteWebAuthnCredential.js.map +1 -1
- package/dist/cjs/client/apis/listWebAuthnCredentials.js +1 -2
- package/dist/cjs/client/apis/listWebAuthnCredentials.js.map +1 -1
- package/dist/cjs/client/flows/shared/handlePasswordSRP.js +1 -2
- package/dist/cjs/client/flows/shared/handlePasswordSRP.js.map +1 -1
- package/dist/cjs/client/flows/userAuth/handleSelectChallenge.js +1 -2
- package/dist/cjs/client/flows/userAuth/handleSelectChallenge.js.map +1 -1
- package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPassword.js +1 -2
- package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPassword.js.map +1 -1
- package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.js +1 -2
- package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.js.map +1 -1
- package/dist/cjs/client/flows/userAuth/handleUserAuthFlow.js +1 -2
- package/dist/cjs/client/flows/userAuth/handleUserAuthFlow.js.map +1 -1
- package/dist/cjs/client/flows/userAuth/handleWebAuthnSignInResult.js +1 -2
- package/dist/cjs/client/flows/userAuth/handleWebAuthnSignInResult.js.map +1 -1
- package/dist/cjs/client/utils/passkey/errors.js +1 -1
- package/dist/cjs/client/utils/passkey/errors.js.map +1 -1
- package/dist/cjs/client/utils/passkey/types/index.js +3 -3
- package/dist/cjs/client/utils/passkey/types/index.js.map +1 -1
- package/dist/cjs/client/utils/passkey/types/shared.js +1 -2
- package/dist/cjs/client/utils/passkey/types/shared.js.map +1 -1
- package/dist/cjs/client/utils/store/signInStore.js +2 -2
- package/dist/cjs/client/utils/store/signInStore.js.map +1 -1
- package/dist/cjs/common/AuthErrorStrings.js +5 -2
- package/dist/cjs/common/AuthErrorStrings.js.map +1 -1
- package/dist/cjs/errors/types/validation.js +2 -1
- package/dist/cjs/errors/types/validation.js.map +1 -1
- package/dist/cjs/errors/utils/assertServiceError.js +1 -2
- package/dist/cjs/errors/utils/assertServiceError.js.map +1 -1
- package/dist/cjs/errors/utils/assertValidationError.js +1 -2
- package/dist/cjs/errors/utils/assertValidationError.js.map +1 -1
- package/dist/cjs/foundation/apis/deleteWebAuthnCredential.js +1 -2
- package/dist/cjs/foundation/apis/deleteWebAuthnCredential.js.map +1 -1
- package/dist/cjs/foundation/apis/listWebAuthnCredentials.js +1 -2
- package/dist/cjs/foundation/apis/listWebAuthnCredentials.js.map +1 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.js +8 -4
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.js.map +1 -1
- package/dist/cjs/foundation/parsers/regionParsers.js +2 -3
- package/dist/cjs/foundation/parsers/regionParsers.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/autoSignIn.js +3 -3
- package/dist/cjs/providers/cognito/apis/autoSignIn.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/confirmResetPassword.js +1 -2
- package/dist/cjs/providers/cognito/apis/confirmResetPassword.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/confirmSignIn.js +1 -2
- package/dist/cjs/providers/cognito/apis/confirmSignIn.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/confirmSignUp.js +1 -2
- package/dist/cjs/providers/cognito/apis/confirmSignUp.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/confirmUserAttribute.js +1 -2
- package/dist/cjs/providers/cognito/apis/confirmUserAttribute.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/deleteUser.js +1 -2
- package/dist/cjs/providers/cognito/apis/deleteUser.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/deleteUserAttributes.js +1 -2
- package/dist/cjs/providers/cognito/apis/deleteUserAttributes.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/fetchDevices.js +1 -2
- package/dist/cjs/providers/cognito/apis/fetchDevices.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/fetchMFAPreference.js +1 -2
- package/dist/cjs/providers/cognito/apis/fetchMFAPreference.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/forgetDevice.js +1 -2
- package/dist/cjs/providers/cognito/apis/forgetDevice.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/rememberDevice.js +1 -2
- package/dist/cjs/providers/cognito/apis/rememberDevice.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/resendSignUpCode.js +1 -2
- package/dist/cjs/providers/cognito/apis/resendSignUpCode.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/resetPassword.js +1 -2
- package/dist/cjs/providers/cognito/apis/resetPassword.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/setUpTOTP.js +1 -2
- package/dist/cjs/providers/cognito/apis/setUpTOTP.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signIn.js +1 -2
- package/dist/cjs/providers/cognito/apis/signIn.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithCustomAuth.js +1 -2
- package/dist/cjs/providers/cognito/apis/signInWithCustomAuth.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithCustomSRPAuth.js +1 -2
- package/dist/cjs/providers/cognito/apis/signInWithCustomSRPAuth.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithRedirect.js +1 -2
- package/dist/cjs/providers/cognito/apis/signInWithRedirect.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithSRP.js +1 -2
- package/dist/cjs/providers/cognito/apis/signInWithSRP.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithUserAuth.js +1 -2
- package/dist/cjs/providers/cognito/apis/signInWithUserAuth.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithUserPassword.js +1 -2
- package/dist/cjs/providers/cognito/apis/signInWithUserPassword.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signOut.js +1 -2
- package/dist/cjs/providers/cognito/apis/signOut.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signUp.js +1 -2
- package/dist/cjs/providers/cognito/apis/signUp.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/updateMFAPreference.js +2 -3
- package/dist/cjs/providers/cognito/apis/updateMFAPreference.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/updatePassword.js +1 -2
- package/dist/cjs/providers/cognito/apis/updatePassword.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/verifyTOTPSetup.js +1 -2
- package/dist/cjs/providers/cognito/apis/verifyTOTPSetup.js.map +1 -1
- package/dist/cjs/providers/cognito/credentialsProvider/IdentityIdProvider.js +1 -2
- package/dist/cjs/providers/cognito/credentialsProvider/IdentityIdProvider.js.map +1 -1
- package/dist/cjs/providers/cognito/credentialsProvider/utils.js +1 -2
- package/dist/cjs/providers/cognito/credentialsProvider/utils.js.map +1 -1
- package/dist/cjs/providers/cognito/tokenProvider/TokenStore.js +2 -2
- package/dist/cjs/providers/cognito/tokenProvider/TokenStore.js.map +1 -1
- package/dist/cjs/providers/cognito/tokenProvider/cacheTokens.js +1 -2
- package/dist/cjs/providers/cognito/tokenProvider/cacheTokens.js.map +1 -1
- package/dist/cjs/providers/cognito/tokenProvider/errorHelpers.js +1 -1
- package/dist/cjs/providers/cognito/tokenProvider/errorHelpers.js.map +1 -1
- package/dist/cjs/providers/cognito/types/errors.js +48 -24
- package/dist/cjs/providers/cognito/types/errors.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/apiHelpers.js +2 -3
- package/dist/cjs/providers/cognito/utils/apiHelpers.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/getNewDeviceMetadata.js +1 -2
- package/dist/cjs/providers/cognito/utils/getNewDeviceMetadata.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/handleDeviceSRPAuth.js +1 -2
- package/dist/cjs/providers/cognito/utils/handleDeviceSRPAuth.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/handlePasswordVerifierChallenge.js +1 -2
- package/dist/cjs/providers/cognito/utils/handlePasswordVerifierChallenge.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/oauth/getRedirectUrl.js +2 -5
- package/dist/cjs/providers/cognito/utils/oauth/getRedirectUrl.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/oauth/getRedirectUrl.native.js +1 -2
- package/dist/cjs/providers/cognito/utils/oauth/getRedirectUrl.native.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/retryOnResourceNotFoundException.js +1 -2
- package/dist/cjs/providers/cognito/utils/retryOnResourceNotFoundException.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/setActiveSignInUsername.js +1 -2
- package/dist/cjs/providers/cognito/utils/setActiveSignInUsername.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/signInHelpers.js +22 -23
- package/dist/cjs/providers/cognito/utils/signInHelpers.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/signUpHelpers.js +3 -3
- package/dist/cjs/providers/cognito/utils/signUpHelpers.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/types.js +6 -6
- package/dist/cjs/providers/cognito/utils/types.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/userContextData.js +1 -2
- package/dist/cjs/providers/cognito/utils/userContextData.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/userContextData.native.js +1 -2
- package/dist/cjs/providers/cognito/utils/userContextData.native.js.map +1 -1
- package/dist/cjs/types/Auth.js +2 -1
- package/dist/cjs/types/Auth.js.map +1 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/constants.d.ts +1 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createAssociateSoftwareTokenClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createChangePasswordClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmDeviceClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmForgotPasswordClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmSignUpClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteUserAttributesClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteUserClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createForgetDeviceClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createForgotPasswordClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createGetUserAttributeVerificationCodeClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createGetUserClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createGlobalSignOutClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createInitiateAuthClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createListDevicesClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createResendConfirmationCodeClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createRespondToAuthChallengeClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createRevokeTokenClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSetUserMFAPreferenceClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.d.ts +3 -3
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createUpdateDeviceStatusClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createUpdateUserAttributesClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createVerifySoftwareTokenClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createVerifyUserAttributeClient.d.ts +2 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createEmptyResponseDeserializer.d.ts +1 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolDeserializer.d.ts +1 -1
- package/dist/esm/providers/cognito/utils/oauth/attemptCompleteOAuthFlow.d.ts +1 -1
- package/dist/esm/providers/cognito/utils/oauth/completeOAuthFlow.d.ts +1 -1
- package/dist/esm/providers/cognito/utils/oauth/generateCodeVerifier.d.ts +1 -1
- package/dist/esm/providers/cognito/utils/oauth/getRedirectUrl.mjs +1 -3
- package/dist/esm/providers/cognito/utils/oauth/getRedirectUrl.mjs.map +1 -1
- package/dist/esm/providers/cognito/utils/refreshAuthTokens.d.ts +1 -1
- package/dist/esm/providers/cognito/utils/signInHelpers.d.ts +1 -1
- package/package.json +105 -106
- package/src/providers/cognito/utils/oauth/getRedirectUrl.ts +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userContextData.js","sources":["../../../../../src/providers/cognito/utils/userContextData.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUserContextData =
|
|
1
|
+
{"version":3,"file":"userContextData.js","sources":["../../../../../src/providers/cognito/utils/userContextData.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUserContextData = getUserContextData;\nfunction getUserContextData({ username, userPoolId, userPoolClientId, }) {\n if (typeof window === 'undefined') {\n return undefined;\n }\n const amazonCognitoAdvancedSecurityData = window\n .AmazonCognitoAdvancedSecurityData;\n if (typeof amazonCognitoAdvancedSecurityData === 'undefined') {\n return undefined;\n }\n const advancedSecurityData = amazonCognitoAdvancedSecurityData.getData(username, userPoolId, userPoolClientId);\n if (advancedSecurityData) {\n const userContextData = {\n EncodedData: advancedSecurityData,\n };\n return userContextData;\n }\n return {};\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,kBAAkB,GAAG,kBAAkB;AAC/C,SAAS,kBAAkB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,gBAAgB,GAAG,EAAE;AACzE,IAAI,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;AACvC,QAAQ,OAAO,SAAS;AACxB;AACA,IAAI,MAAM,iCAAiC,GAAG;AAC9C,SAAS,iCAAiC;AAC1C,IAAI,IAAI,OAAO,iCAAiC,KAAK,WAAW,EAAE;AAClE,QAAQ,OAAO,SAAS;AACxB;AACA,IAAI,MAAM,oBAAoB,GAAG,iCAAiC,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,EAAE,gBAAgB,CAAC;AAClH,IAAI,IAAI,oBAAoB,EAAE;AAC9B,QAAQ,MAAM,eAAe,GAAG;AAChC,YAAY,WAAW,EAAE,oBAAoB;AAC7C,SAAS;AACT,QAAQ,OAAO,eAAe;AAC9B;AACA,IAAI,OAAO,EAAE;AACb;;"}
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getUserContextData =
|
|
6
|
+
exports.getUserContextData = getUserContextData;
|
|
7
7
|
// TODO: add support after https://amazon-cognito-assets.us-east-1.amazoncognito.com/amazon-cognito-advanced-security-data.min.js can be imported
|
|
8
8
|
function getUserContextData(_) {
|
|
9
9
|
return undefined;
|
|
10
10
|
}
|
|
11
|
-
exports.getUserContextData = getUserContextData;
|
|
12
11
|
//# sourceMappingURL=userContextData.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userContextData.native.js","sources":["../../../../../src/providers/cognito/utils/userContextData.native.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUserContextData =
|
|
1
|
+
{"version":3,"file":"userContextData.native.js","sources":["../../../../../src/providers/cognito/utils/userContextData.native.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUserContextData = getUserContextData;\n// TODO: add support after https://amazon-cognito-assets.us-east-1.amazoncognito.com/amazon-cognito-advanced-security-data.min.js can be imported\nfunction getUserContextData(_) {\n return undefined;\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,kBAAkB,GAAG,kBAAkB;AAC/C;AACA,SAAS,kBAAkB,CAAC,CAAC,EAAE;AAC/B,IAAI,OAAO,SAAS;AACpB;;"}
|
package/dist/cjs/types/Auth.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AuthErrorTypes = void 0;
|
|
7
|
+
var AuthErrorTypes;
|
|
7
8
|
(function (AuthErrorTypes) {
|
|
8
9
|
AuthErrorTypes["NoConfig"] = "noConfig";
|
|
9
10
|
AuthErrorTypes["MissingAuthConfig"] = "missingAuthConfig";
|
|
@@ -21,5 +22,5 @@ exports.AuthErrorTypes = void 0;
|
|
|
21
22
|
AuthErrorTypes["NetworkError"] = "networkError";
|
|
22
23
|
AuthErrorTypes["AutoSignInError"] = "autoSignInError";
|
|
23
24
|
AuthErrorTypes["OAuthSignInError"] = "oauthSignInError";
|
|
24
|
-
})(
|
|
25
|
+
})(AuthErrorTypes || (exports.AuthErrorTypes = AuthErrorTypes = {}));
|
|
25
26
|
//# sourceMappingURL=Auth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Auth.js","sources":["../../../src/types/Auth.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AuthErrorTypes = void 0;\nvar AuthErrorTypes;\n(function (AuthErrorTypes) {\n AuthErrorTypes[\"NoConfig\"] = \"noConfig\";\n AuthErrorTypes[\"MissingAuthConfig\"] = \"missingAuthConfig\";\n AuthErrorTypes[\"EmptyUsername\"] = \"emptyUsername\";\n AuthErrorTypes[\"InvalidUsername\"] = \"invalidUsername\";\n AuthErrorTypes[\"EmptyPassword\"] = \"emptyPassword\";\n AuthErrorTypes[\"EmptyCode\"] = \"emptyCode\";\n AuthErrorTypes[\"SignUpError\"] = \"signUpError\";\n AuthErrorTypes[\"NoMFA\"] = \"noMFA\";\n AuthErrorTypes[\"InvalidMFA\"] = \"invalidMFA\";\n AuthErrorTypes[\"EmptyChallengeResponse\"] = \"emptyChallengeResponse\";\n AuthErrorTypes[\"NoUserSession\"] = \"noUserSession\";\n AuthErrorTypes[\"Default\"] = \"default\";\n AuthErrorTypes[\"DeviceConfig\"] = \"deviceConfig\";\n AuthErrorTypes[\"NetworkError\"] = \"networkError\";\n AuthErrorTypes[\"AutoSignInError\"] = \"autoSignInError\";\n AuthErrorTypes[\"OAuthSignInError\"] = \"oauthSignInError\";\n})(AuthErrorTypes
|
|
1
|
+
{"version":3,"file":"Auth.js","sources":["../../../src/types/Auth.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AuthErrorTypes = void 0;\nvar AuthErrorTypes;\n(function (AuthErrorTypes) {\n AuthErrorTypes[\"NoConfig\"] = \"noConfig\";\n AuthErrorTypes[\"MissingAuthConfig\"] = \"missingAuthConfig\";\n AuthErrorTypes[\"EmptyUsername\"] = \"emptyUsername\";\n AuthErrorTypes[\"InvalidUsername\"] = \"invalidUsername\";\n AuthErrorTypes[\"EmptyPassword\"] = \"emptyPassword\";\n AuthErrorTypes[\"EmptyCode\"] = \"emptyCode\";\n AuthErrorTypes[\"SignUpError\"] = \"signUpError\";\n AuthErrorTypes[\"NoMFA\"] = \"noMFA\";\n AuthErrorTypes[\"InvalidMFA\"] = \"invalidMFA\";\n AuthErrorTypes[\"EmptyChallengeResponse\"] = \"emptyChallengeResponse\";\n AuthErrorTypes[\"NoUserSession\"] = \"noUserSession\";\n AuthErrorTypes[\"Default\"] = \"default\";\n AuthErrorTypes[\"DeviceConfig\"] = \"deviceConfig\";\n AuthErrorTypes[\"NetworkError\"] = \"networkError\";\n AuthErrorTypes[\"AutoSignInError\"] = \"autoSignInError\";\n AuthErrorTypes[\"OAuthSignInError\"] = \"oauthSignInError\";\n})(AuthErrorTypes || (exports.AuthErrorTypes = AuthErrorTypes = {}));\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,cAAc,GAAG,MAAM;AAC/B,IAAI,cAAc;AAClB,CAAC,UAAU,cAAc,EAAE;AAC3B,IAAI,cAAc,CAAC,UAAU,CAAC,GAAG,UAAU;AAC3C,IAAI,cAAc,CAAC,mBAAmB,CAAC,GAAG,mBAAmB;AAC7D,IAAI,cAAc,CAAC,eAAe,CAAC,GAAG,eAAe;AACrD,IAAI,cAAc,CAAC,iBAAiB,CAAC,GAAG,iBAAiB;AACzD,IAAI,cAAc,CAAC,eAAe,CAAC,GAAG,eAAe;AACrD,IAAI,cAAc,CAAC,WAAW,CAAC,GAAG,WAAW;AAC7C,IAAI,cAAc,CAAC,aAAa,CAAC,GAAG,aAAa;AACjD,IAAI,cAAc,CAAC,OAAO,CAAC,GAAG,OAAO;AACrC,IAAI,cAAc,CAAC,YAAY,CAAC,GAAG,YAAY;AAC/C,IAAI,cAAc,CAAC,wBAAwB,CAAC,GAAG,wBAAwB;AACvE,IAAI,cAAc,CAAC,eAAe,CAAC,GAAG,eAAe;AACrD,IAAI,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS;AACzC,IAAI,cAAc,CAAC,cAAc,CAAC,GAAG,cAAc;AACnD,IAAI,cAAc,CAAC,cAAc,CAAC,GAAG,cAAc;AACnD,IAAI,cAAc,CAAC,iBAAiB,CAAC,GAAG,iBAAiB;AACzD,IAAI,cAAc,CAAC,kBAAkB,CAAC,GAAG,kBAAkB;AAC3D,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,cAAc,GAAG,cAAc,GAAG,EAAE,CAAC,CAAC;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const DEFAULT_SERVICE_CLIENT_API_CONFIG: {
|
|
2
2
|
service: string;
|
|
3
|
-
retryDecider: (response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse
|
|
3
|
+
retryDecider: (response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>;
|
|
4
4
|
computeDelay: (attempt: number) => number;
|
|
5
5
|
userAgentValue: string;
|
|
6
6
|
cache: string;
|
|
@@ -4,10 +4,10 @@ export declare const createAssociateSoftwareTokenClient: (config: ServiceClientF
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").AssociateSoftwareTokenRequest) => Promise<AssociateSoftwareTokenCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createChangePasswordClient: (config: ServiceClientFactoryIn
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").ChangePasswordRequest) => Promise<ChangePasswordCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createCompleteWebAuthnRegistrationClient: (config: ServiceC
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").CompleteWebAuthnRegistrationRequest) => Promise<CompleteWebAuthnRegistrationCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createConfirmDeviceClient: (config: ServiceClientFactoryInp
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").ConfirmDeviceRequest) => Promise<ConfirmDeviceCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createConfirmForgotPasswordClient: (config: ServiceClientFa
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").ConfirmForgotPasswordRequest) => Promise<ConfirmForgotPasswordCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createConfirmSignUpClient: (config: ServiceClientFactoryInp
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").ConfirmSignUpRequest) => Promise<ConfirmSignUpCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createDeleteUserAttributesClient: (config: ServiceClientFac
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").DeleteUserAttributesRequest) => Promise<DeleteUserAttributesCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createDeleteUserClient: (config: ServiceClientFactoryInput)
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").DeleteUserRequest) => Promise<DeleteUserCommandOutput | undefined>;
|
|
@@ -4,10 +4,10 @@ export declare const createDeleteWebAuthnCredentialClient: (config: ServiceClien
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").DeleteWebAuthnCredentialInput) => Promise<DeleteWebAuthnCredentialCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createForgetDeviceClient: (config: ServiceClientFactoryInpu
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").ForgetDeviceRequest) => Promise<import("@smithy/types").MetadataBearer | undefined>;
|
|
@@ -4,10 +4,10 @@ export declare const createForgotPasswordClient: (config: ServiceClientFactoryIn
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").ForgotPasswordRequest) => Promise<ForgotPasswordCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createGetUserAttributeVerificationCodeClient: (config: Serv
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").GetUserAttributeVerificationCodeRequest) => Promise<GetUserAttributeVerificationCodeCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createGetUserClient: (config: ServiceClientFactoryInput) =>
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").GetUserRequest) => Promise<GetUserCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createGlobalSignOutClient: (config: ServiceClientFactoryInp
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").GlobalSignOutRequest) => Promise<GlobalSignOutCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createInitiateAuthClient: (config: ServiceClientFactoryInpu
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").InitiateAuthRequest) => Promise<InitiateAuthCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createListDevicesClient: (config: ServiceClientFactoryInput
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").ListDevicesRequest) => Promise<ListDevicesCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createListWebAuthnCredentialsClient: (config: ServiceClient
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").ListWebAuthnCredentialsInput) => Promise<ListWebAuthnCredentialsCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createResendConfirmationCodeClient: (config: ServiceClientF
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").ResendConfirmationCodeRequest) => Promise<ResendConfirmationCodeCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createRespondToAuthChallengeClient: (config: ServiceClientF
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").RespondToAuthChallengeRequest) => Promise<RespondToAuthChallengeCommandOutput>;
|
|
@@ -9,10 +9,10 @@ export declare const createRevokeTokenClient: (config: ServiceClientFactoryInput
|
|
|
9
9
|
url: URL;
|
|
10
10
|
})) | undefined;
|
|
11
11
|
service?: string | undefined;
|
|
12
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
12
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
13
13
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
14
14
|
userAgentValue?: string | undefined;
|
|
15
|
-
cache?: "default" | "
|
|
15
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
[x: string]: unknown;
|
|
18
18
|
}, input: RevokeTokenInput) => Promise<RevokeTokenOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createSetUserMFAPreferenceClient: (config: ServiceClientFac
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").SetUserMFAPreferenceRequest) => Promise<SetUserMFAPreferenceCommandOutput>;
|
package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
|
|
2
2
|
import { ServiceClientFactoryInput, SignUpCommandOutput } from './types';
|
|
3
|
-
export declare const createSignUpClientDeserializer: () => (response: HttpResponse) => Promise<SignUpCommandOutput
|
|
3
|
+
export declare const createSignUpClientDeserializer: () => ((response: HttpResponse) => Promise<SignUpCommandOutput>);
|
|
4
4
|
export declare const createSignUpClient: (config: ServiceClientFactoryInput) => (config: {
|
|
5
5
|
endpointResolver?: (((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions, input?: any) => import("@aws-amplify/core/internals/aws-client-utils").Endpoint) & ((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions) => {
|
|
6
6
|
url: URL;
|
|
7
7
|
})) | undefined;
|
|
8
8
|
service?: string | undefined;
|
|
9
|
-
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
9
|
+
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
10
10
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
11
11
|
userAgentValue?: string | undefined;
|
|
12
|
-
cache?: "default" | "
|
|
12
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
13
13
|
} & {
|
|
14
14
|
[x: string]: unknown;
|
|
15
15
|
}, input: import("./types").SignUpRequest) => Promise<SignUpCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createStartWebAuthnRegistrationClient: (config: ServiceClie
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").StartWebAuthnRegistrationRequest) => Promise<StartWebAuthnRegistrationCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createUpdateDeviceStatusClient: (config: ServiceClientFacto
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").UpdateDeviceStatusRequest) => Promise<UpdateDeviceStatusCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createUpdateUserAttributesClient: (config: ServiceClientFac
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").UpdateUserAttributesRequest) => Promise<UpdateUserAttributesCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createVerifySoftwareTokenClient: (config: ServiceClientFact
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").VerifySoftwareTokenRequest) => Promise<VerifySoftwareTokenCommandOutput>;
|
|
@@ -4,10 +4,10 @@ export declare const createVerifyUserAttributeClient: (config: ServiceClientFact
|
|
|
4
4
|
url: URL;
|
|
5
5
|
})) | undefined;
|
|
6
6
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
8
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
9
|
userAgentValue?: string | undefined;
|
|
10
|
-
cache?: "default" | "
|
|
10
|
+
cache?: "default" | "no-store" | "force-cache" | "no-cache" | "only-if-cached" | "reload" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
[x: string]: unknown;
|
|
13
13
|
}, input: import("./types").VerifyUserAttributeRequest) => Promise<VerifyUserAttributeCommandOutput>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
|
|
2
|
-
export declare const createEmptyResponseDeserializer: <Output>() => (response: HttpResponse) => Promise<Output | undefined
|
|
2
|
+
export declare const createEmptyResponseDeserializer: <Output>() => ((response: HttpResponse) => Promise<Output | undefined>);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
|
|
2
|
-
export declare const createUserPoolDeserializer: <Output>() => (response: HttpResponse) => Promise<Output
|
|
2
|
+
export declare const createUserPoolDeserializer: <Output>() => ((response: HttpResponse) => Promise<Output>);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AuthConfig } from '@aws-amplify/core';
|
|
2
|
-
export declare const attemptCompleteOAuthFlow: (authConfig: AuthConfig[
|
|
2
|
+
export declare const attemptCompleteOAuthFlow: (authConfig: AuthConfig["Cognito"]) => Promise<void>;
|
|
@@ -25,9 +25,7 @@ function getRedirectUrl(redirects, preferredRedirectUrl) {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
// origin + pathname => https://example.com/app
|
|
28
|
-
const isSameOriginAndPathName = (redirect) => redirect.startsWith(
|
|
29
|
-
// eslint-disable-next-line no-constant-binary-expression
|
|
30
|
-
String(window.location.origin + window.location.pathname ?? '/'));
|
|
28
|
+
const isSameOriginAndPathName = (redirect) => redirect.startsWith(String(window.location.origin + (window.location.pathname || '/')));
|
|
31
29
|
// domain => outlook.live.com, github.com
|
|
32
30
|
const isTheSameDomain = (redirect) => redirect.includes(String(window.location.hostname));
|
|
33
31
|
const isHttp = (redirect) => redirect.startsWith('http://');
|