@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.
Files changed (173) hide show
  1. package/dist/cjs/client/apis/associateWebAuthnCredential.js +1 -2
  2. package/dist/cjs/client/apis/associateWebAuthnCredential.js.map +1 -1
  3. package/dist/cjs/client/apis/deleteWebAuthnCredential.js +1 -2
  4. package/dist/cjs/client/apis/deleteWebAuthnCredential.js.map +1 -1
  5. package/dist/cjs/client/apis/listWebAuthnCredentials.js +1 -2
  6. package/dist/cjs/client/apis/listWebAuthnCredentials.js.map +1 -1
  7. package/dist/cjs/client/flows/shared/handlePasswordSRP.js +1 -2
  8. package/dist/cjs/client/flows/shared/handlePasswordSRP.js.map +1 -1
  9. package/dist/cjs/client/flows/userAuth/handleSelectChallenge.js +1 -2
  10. package/dist/cjs/client/flows/userAuth/handleSelectChallenge.js.map +1 -1
  11. package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPassword.js +1 -2
  12. package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPassword.js.map +1 -1
  13. package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.js +1 -2
  14. package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.js.map +1 -1
  15. package/dist/cjs/client/flows/userAuth/handleUserAuthFlow.js +1 -2
  16. package/dist/cjs/client/flows/userAuth/handleUserAuthFlow.js.map +1 -1
  17. package/dist/cjs/client/flows/userAuth/handleWebAuthnSignInResult.js +1 -2
  18. package/dist/cjs/client/flows/userAuth/handleWebAuthnSignInResult.js.map +1 -1
  19. package/dist/cjs/client/utils/passkey/errors.js +1 -1
  20. package/dist/cjs/client/utils/passkey/errors.js.map +1 -1
  21. package/dist/cjs/client/utils/passkey/types/index.js +3 -3
  22. package/dist/cjs/client/utils/passkey/types/index.js.map +1 -1
  23. package/dist/cjs/client/utils/passkey/types/shared.js +1 -2
  24. package/dist/cjs/client/utils/passkey/types/shared.js.map +1 -1
  25. package/dist/cjs/client/utils/store/signInStore.js +2 -2
  26. package/dist/cjs/client/utils/store/signInStore.js.map +1 -1
  27. package/dist/cjs/common/AuthErrorStrings.js +5 -2
  28. package/dist/cjs/common/AuthErrorStrings.js.map +1 -1
  29. package/dist/cjs/errors/types/validation.js +2 -1
  30. package/dist/cjs/errors/types/validation.js.map +1 -1
  31. package/dist/cjs/errors/utils/assertServiceError.js +1 -2
  32. package/dist/cjs/errors/utils/assertServiceError.js.map +1 -1
  33. package/dist/cjs/errors/utils/assertValidationError.js +1 -2
  34. package/dist/cjs/errors/utils/assertValidationError.js.map +1 -1
  35. package/dist/cjs/foundation/apis/deleteWebAuthnCredential.js +1 -2
  36. package/dist/cjs/foundation/apis/deleteWebAuthnCredential.js.map +1 -1
  37. package/dist/cjs/foundation/apis/listWebAuthnCredentials.js +1 -2
  38. package/dist/cjs/foundation/apis/listWebAuthnCredentials.js.map +1 -1
  39. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.js +8 -4
  40. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.js.map +1 -1
  41. package/dist/cjs/foundation/parsers/regionParsers.js +2 -3
  42. package/dist/cjs/foundation/parsers/regionParsers.js.map +1 -1
  43. package/dist/cjs/providers/cognito/apis/autoSignIn.js +3 -3
  44. package/dist/cjs/providers/cognito/apis/autoSignIn.js.map +1 -1
  45. package/dist/cjs/providers/cognito/apis/confirmResetPassword.js +1 -2
  46. package/dist/cjs/providers/cognito/apis/confirmResetPassword.js.map +1 -1
  47. package/dist/cjs/providers/cognito/apis/confirmSignIn.js +1 -2
  48. package/dist/cjs/providers/cognito/apis/confirmSignIn.js.map +1 -1
  49. package/dist/cjs/providers/cognito/apis/confirmSignUp.js +1 -2
  50. package/dist/cjs/providers/cognito/apis/confirmSignUp.js.map +1 -1
  51. package/dist/cjs/providers/cognito/apis/confirmUserAttribute.js +1 -2
  52. package/dist/cjs/providers/cognito/apis/confirmUserAttribute.js.map +1 -1
  53. package/dist/cjs/providers/cognito/apis/deleteUser.js +1 -2
  54. package/dist/cjs/providers/cognito/apis/deleteUser.js.map +1 -1
  55. package/dist/cjs/providers/cognito/apis/deleteUserAttributes.js +1 -2
  56. package/dist/cjs/providers/cognito/apis/deleteUserAttributes.js.map +1 -1
  57. package/dist/cjs/providers/cognito/apis/fetchDevices.js +1 -2
  58. package/dist/cjs/providers/cognito/apis/fetchDevices.js.map +1 -1
  59. package/dist/cjs/providers/cognito/apis/fetchMFAPreference.js +1 -2
  60. package/dist/cjs/providers/cognito/apis/fetchMFAPreference.js.map +1 -1
  61. package/dist/cjs/providers/cognito/apis/forgetDevice.js +1 -2
  62. package/dist/cjs/providers/cognito/apis/forgetDevice.js.map +1 -1
  63. package/dist/cjs/providers/cognito/apis/rememberDevice.js +1 -2
  64. package/dist/cjs/providers/cognito/apis/rememberDevice.js.map +1 -1
  65. package/dist/cjs/providers/cognito/apis/resendSignUpCode.js +1 -2
  66. package/dist/cjs/providers/cognito/apis/resendSignUpCode.js.map +1 -1
  67. package/dist/cjs/providers/cognito/apis/resetPassword.js +1 -2
  68. package/dist/cjs/providers/cognito/apis/resetPassword.js.map +1 -1
  69. package/dist/cjs/providers/cognito/apis/setUpTOTP.js +1 -2
  70. package/dist/cjs/providers/cognito/apis/setUpTOTP.js.map +1 -1
  71. package/dist/cjs/providers/cognito/apis/signIn.js +1 -2
  72. package/dist/cjs/providers/cognito/apis/signIn.js.map +1 -1
  73. package/dist/cjs/providers/cognito/apis/signInWithCustomAuth.js +1 -2
  74. package/dist/cjs/providers/cognito/apis/signInWithCustomAuth.js.map +1 -1
  75. package/dist/cjs/providers/cognito/apis/signInWithCustomSRPAuth.js +1 -2
  76. package/dist/cjs/providers/cognito/apis/signInWithCustomSRPAuth.js.map +1 -1
  77. package/dist/cjs/providers/cognito/apis/signInWithRedirect.js +1 -2
  78. package/dist/cjs/providers/cognito/apis/signInWithRedirect.js.map +1 -1
  79. package/dist/cjs/providers/cognito/apis/signInWithSRP.js +1 -2
  80. package/dist/cjs/providers/cognito/apis/signInWithSRP.js.map +1 -1
  81. package/dist/cjs/providers/cognito/apis/signInWithUserAuth.js +1 -2
  82. package/dist/cjs/providers/cognito/apis/signInWithUserAuth.js.map +1 -1
  83. package/dist/cjs/providers/cognito/apis/signInWithUserPassword.js +1 -2
  84. package/dist/cjs/providers/cognito/apis/signInWithUserPassword.js.map +1 -1
  85. package/dist/cjs/providers/cognito/apis/signOut.js +1 -2
  86. package/dist/cjs/providers/cognito/apis/signOut.js.map +1 -1
  87. package/dist/cjs/providers/cognito/apis/signUp.js +1 -2
  88. package/dist/cjs/providers/cognito/apis/signUp.js.map +1 -1
  89. package/dist/cjs/providers/cognito/apis/updateMFAPreference.js +2 -3
  90. package/dist/cjs/providers/cognito/apis/updateMFAPreference.js.map +1 -1
  91. package/dist/cjs/providers/cognito/apis/updatePassword.js +1 -2
  92. package/dist/cjs/providers/cognito/apis/updatePassword.js.map +1 -1
  93. package/dist/cjs/providers/cognito/apis/verifyTOTPSetup.js +1 -2
  94. package/dist/cjs/providers/cognito/apis/verifyTOTPSetup.js.map +1 -1
  95. package/dist/cjs/providers/cognito/credentialsProvider/IdentityIdProvider.js +1 -2
  96. package/dist/cjs/providers/cognito/credentialsProvider/IdentityIdProvider.js.map +1 -1
  97. package/dist/cjs/providers/cognito/credentialsProvider/utils.js +1 -2
  98. package/dist/cjs/providers/cognito/credentialsProvider/utils.js.map +1 -1
  99. package/dist/cjs/providers/cognito/tokenProvider/TokenStore.js +2 -2
  100. package/dist/cjs/providers/cognito/tokenProvider/TokenStore.js.map +1 -1
  101. package/dist/cjs/providers/cognito/tokenProvider/cacheTokens.js +1 -2
  102. package/dist/cjs/providers/cognito/tokenProvider/cacheTokens.js.map +1 -1
  103. package/dist/cjs/providers/cognito/tokenProvider/errorHelpers.js +1 -1
  104. package/dist/cjs/providers/cognito/tokenProvider/errorHelpers.js.map +1 -1
  105. package/dist/cjs/providers/cognito/types/errors.js +48 -24
  106. package/dist/cjs/providers/cognito/types/errors.js.map +1 -1
  107. package/dist/cjs/providers/cognito/utils/apiHelpers.js +2 -3
  108. package/dist/cjs/providers/cognito/utils/apiHelpers.js.map +1 -1
  109. package/dist/cjs/providers/cognito/utils/getNewDeviceMetadata.js +1 -2
  110. package/dist/cjs/providers/cognito/utils/getNewDeviceMetadata.js.map +1 -1
  111. package/dist/cjs/providers/cognito/utils/handleDeviceSRPAuth.js +1 -2
  112. package/dist/cjs/providers/cognito/utils/handleDeviceSRPAuth.js.map +1 -1
  113. package/dist/cjs/providers/cognito/utils/handlePasswordVerifierChallenge.js +1 -2
  114. package/dist/cjs/providers/cognito/utils/handlePasswordVerifierChallenge.js.map +1 -1
  115. package/dist/cjs/providers/cognito/utils/oauth/getRedirectUrl.js +2 -5
  116. package/dist/cjs/providers/cognito/utils/oauth/getRedirectUrl.js.map +1 -1
  117. package/dist/cjs/providers/cognito/utils/oauth/getRedirectUrl.native.js +1 -2
  118. package/dist/cjs/providers/cognito/utils/oauth/getRedirectUrl.native.js.map +1 -1
  119. package/dist/cjs/providers/cognito/utils/retryOnResourceNotFoundException.js +1 -2
  120. package/dist/cjs/providers/cognito/utils/retryOnResourceNotFoundException.js.map +1 -1
  121. package/dist/cjs/providers/cognito/utils/setActiveSignInUsername.js +1 -2
  122. package/dist/cjs/providers/cognito/utils/setActiveSignInUsername.js.map +1 -1
  123. package/dist/cjs/providers/cognito/utils/signInHelpers.js +22 -23
  124. package/dist/cjs/providers/cognito/utils/signInHelpers.js.map +1 -1
  125. package/dist/cjs/providers/cognito/utils/signUpHelpers.js +3 -3
  126. package/dist/cjs/providers/cognito/utils/signUpHelpers.js.map +1 -1
  127. package/dist/cjs/providers/cognito/utils/types.js +6 -6
  128. package/dist/cjs/providers/cognito/utils/types.js.map +1 -1
  129. package/dist/cjs/providers/cognito/utils/userContextData.js +1 -2
  130. package/dist/cjs/providers/cognito/utils/userContextData.js.map +1 -1
  131. package/dist/cjs/providers/cognito/utils/userContextData.native.js +1 -2
  132. package/dist/cjs/providers/cognito/utils/userContextData.native.js.map +1 -1
  133. package/dist/cjs/types/Auth.js +2 -1
  134. package/dist/cjs/types/Auth.js.map +1 -1
  135. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/constants.d.ts +1 -1
  136. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createAssociateSoftwareTokenClient.d.ts +2 -2
  137. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createChangePasswordClient.d.ts +2 -2
  138. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.d.ts +2 -2
  139. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmDeviceClient.d.ts +2 -2
  140. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmForgotPasswordClient.d.ts +2 -2
  141. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmSignUpClient.d.ts +2 -2
  142. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteUserAttributesClient.d.ts +2 -2
  143. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteUserClient.d.ts +2 -2
  144. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.d.ts +2 -2
  145. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createForgetDeviceClient.d.ts +2 -2
  146. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createForgotPasswordClient.d.ts +2 -2
  147. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createGetUserAttributeVerificationCodeClient.d.ts +2 -2
  148. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createGetUserClient.d.ts +2 -2
  149. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createGlobalSignOutClient.d.ts +2 -2
  150. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createInitiateAuthClient.d.ts +2 -2
  151. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createListDevicesClient.d.ts +2 -2
  152. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.d.ts +2 -2
  153. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createResendConfirmationCodeClient.d.ts +2 -2
  154. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createRespondToAuthChallengeClient.d.ts +2 -2
  155. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createRevokeTokenClient.d.ts +2 -2
  156. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSetUserMFAPreferenceClient.d.ts +2 -2
  157. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.d.ts +3 -3
  158. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.d.ts +2 -2
  159. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createUpdateDeviceStatusClient.d.ts +2 -2
  160. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createUpdateUserAttributesClient.d.ts +2 -2
  161. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createVerifySoftwareTokenClient.d.ts +2 -2
  162. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createVerifyUserAttributeClient.d.ts +2 -2
  163. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createEmptyResponseDeserializer.d.ts +1 -1
  164. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolDeserializer.d.ts +1 -1
  165. package/dist/esm/providers/cognito/utils/oauth/attemptCompleteOAuthFlow.d.ts +1 -1
  166. package/dist/esm/providers/cognito/utils/oauth/completeOAuthFlow.d.ts +1 -1
  167. package/dist/esm/providers/cognito/utils/oauth/generateCodeVerifier.d.ts +1 -1
  168. package/dist/esm/providers/cognito/utils/oauth/getRedirectUrl.mjs +1 -3
  169. package/dist/esm/providers/cognito/utils/oauth/getRedirectUrl.mjs.map +1 -1
  170. package/dist/esm/providers/cognito/utils/refreshAuthTokens.d.ts +1 -1
  171. package/dist/esm/providers/cognito/utils/signInHelpers.d.ts +1 -1
  172. package/package.json +105 -106
  173. 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 = void 0;\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}\nexports.getUserContextData = getUserContextData;\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,MAAM;AACnC,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;AACA,OAAO,CAAC,kBAAkB,GAAG,kBAAkB;;"}
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 = void 0;
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 = void 0;\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}\nexports.getUserContextData = getUserContextData;\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,MAAM;AACnC;AACA,SAAS,kBAAkB,CAAC,CAAC,EAAE;AAC/B,IAAI,OAAO,SAAS;AACpB;AACA,OAAO,CAAC,kBAAkB,GAAG,kBAAkB;;"}
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;;"}
@@ -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
- })(exports.AuthErrorTypes || (exports.AuthErrorTypes = {}));
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 = exports.AuthErrorTypes || (exports.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;AAE/B,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,EAAmB,OAAO,CAAC,cAAc,KAAK,OAAO,CAAC,cAAc,GAAG,EAAE,CAAC,CAAC;;"}
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 | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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>;
@@ -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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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 | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | 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) => 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" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
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['Cognito']) => Promise<void>;
2
+ export declare const attemptCompleteOAuthFlow: (authConfig: AuthConfig["Cognito"]) => Promise<void>;
@@ -5,5 +5,5 @@ export declare const completeOAuthFlow: ({ currentUrl, userAgentValue, clientId,
5
5
  redirectUri: string;
6
6
  responseType: string;
7
7
  domain: string;
8
- preferPrivateSession?: boolean | undefined;
8
+ preferPrivateSession?: boolean;
9
9
  }) => Promise<void>;
@@ -11,6 +11,6 @@
11
11
  */
12
12
  export declare const generateCodeVerifier: (length: number) => {
13
13
  value: string;
14
- method: 'S256';
14
+ method: "S256";
15
15
  toCodeChallenge(): string;
16
16
  };
@@ -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://');