@aws-amplify/auth 6.7.1-unstable.ab33a03.0 → 6.8.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 +62 -0
- package/dist/cjs/client/apis/associateWebAuthnCredential.js.map +1 -0
- package/dist/cjs/client/apis/deleteWebAuthnCredential.js +22 -0
- package/dist/cjs/client/apis/deleteWebAuthnCredential.js.map +1 -0
- package/dist/cjs/client/apis/index.js +13 -0
- package/dist/cjs/client/apis/index.js.map +1 -0
- package/dist/cjs/client/apis/listWebAuthnCredentials.js +23 -0
- package/dist/cjs/client/apis/listWebAuthnCredentials.js.map +1 -0
- package/dist/cjs/client/flows/shared/handlePasswordSRP.js +79 -0
- package/dist/cjs/client/flows/shared/handlePasswordSRP.js.map +1 -0
- package/dist/cjs/client/flows/userAuth/handleSelectChallenge.js +46 -0
- package/dist/cjs/client/flows/userAuth/handleSelectChallenge.js.map +1 -0
- package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPassword.js +59 -0
- package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPassword.js.map +1 -0
- package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.js +74 -0
- package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.js.map +1 -0
- package/dist/cjs/client/flows/userAuth/handleUserAuthFlow.js +84 -0
- package/dist/cjs/client/flows/userAuth/handleUserAuthFlow.js.map +1 -0
- package/dist/cjs/client/flows/userAuth/handleWebAuthnSignInResult.js +88 -0
- package/dist/cjs/client/flows/userAuth/handleWebAuthnSignInResult.js.map +1 -0
- package/dist/cjs/client/utils/index.js +9 -0
- package/dist/cjs/client/utils/index.js.map +1 -0
- package/dist/cjs/client/utils/passkey/errors.js +180 -0
- package/dist/cjs/client/utils/passkey/errors.js.map +1 -0
- package/dist/cjs/client/utils/passkey/getIsPasskeySupported.js +20 -0
- package/dist/cjs/client/utils/passkey/getIsPasskeySupported.js.map +1 -0
- package/dist/cjs/client/utils/passkey/getIsPasskeySupported.native.js +12 -0
- package/dist/cjs/client/utils/passkey/getIsPasskeySupported.native.js.map +1 -0
- package/dist/cjs/client/utils/passkey/getPasskey.js +27 -0
- package/dist/cjs/client/utils/passkey/getPasskey.js.map +1 -0
- package/dist/cjs/client/utils/passkey/getPasskey.native.js +12 -0
- package/dist/cjs/client/utils/passkey/getPasskey.native.js.map +1 -0
- package/dist/cjs/client/utils/passkey/index.js +11 -0
- package/dist/cjs/client/utils/passkey/index.js.map +1 -0
- package/dist/cjs/client/utils/passkey/registerPasskey.js +32 -0
- package/dist/cjs/client/utils/passkey/registerPasskey.js.map +1 -0
- package/dist/cjs/client/utils/passkey/registerPasskey.native.js +12 -0
- package/dist/cjs/client/utils/passkey/registerPasskey.native.js.map +1 -0
- package/dist/cjs/client/utils/passkey/serde.js +106 -0
- package/dist/cjs/client/utils/passkey/serde.js.map +1 -0
- package/dist/cjs/client/utils/passkey/types/index.js +25 -0
- package/dist/cjs/client/utils/passkey/types/index.js.map +1 -0
- package/dist/cjs/client/utils/passkey/types/shared.js +18 -0
- package/dist/cjs/client/utils/passkey/types/shared.js.map +1 -0
- package/dist/cjs/client/utils/store/autoSignInStore.js +45 -0
- package/dist/cjs/client/utils/store/autoSignInStore.js.map +1 -0
- package/dist/cjs/client/utils/store/index.js +9 -0
- package/dist/cjs/client/utils/store/index.js.map +1 -0
- package/dist/cjs/client/utils/store/signInStore.js.map +1 -0
- package/dist/cjs/client/utils/store/types.js +6 -0
- package/dist/cjs/client/utils/store/types.js.map +1 -0
- package/dist/cjs/foundation/apis/deleteWebAuthnCredential.js +33 -0
- package/dist/cjs/foundation/apis/deleteWebAuthnCredential.js.map +1 -0
- package/dist/cjs/foundation/apis/index.js +11 -0
- package/dist/cjs/foundation/apis/index.js.map +1 -0
- package/dist/cjs/foundation/apis/listWebAuthnCredentials.js +46 -0
- package/dist/cjs/foundation/apis/listWebAuthnCredentials.js.map +1 -0
- package/dist/cjs/foundation/convert/base64url/convertArrayBufferToBase64Url.js +21 -0
- package/dist/cjs/foundation/convert/base64url/convertArrayBufferToBase64Url.js.map +1 -0
- package/dist/cjs/foundation/convert/base64url/convertBase64UrlToArrayBuffer.js +17 -0
- package/dist/cjs/foundation/convert/base64url/convertBase64UrlToArrayBuffer.js.map +1 -0
- package/dist/cjs/foundation/convert/base64url/index.js +11 -0
- package/dist/cjs/foundation/convert/base64url/index.js.map +1 -0
- package/dist/cjs/foundation/convert/index.js +10 -0
- package/dist/cjs/foundation/convert/index.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.js +16 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.js +16 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.js +16 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.js +33 -4
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.js.map +1 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.js +16 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/index.js +9 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/index.js.map +1 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.js +44 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.js +3 -2
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.js.map +1 -1
- package/dist/cjs/foundation/types/index.js +6 -0
- package/dist/cjs/foundation/types/index.js.map +1 -0
- package/dist/cjs/foundation/types/inputs.js +6 -0
- package/dist/cjs/foundation/types/inputs.js.map +1 -0
- package/dist/cjs/foundation/types/models.js +6 -0
- package/dist/cjs/foundation/types/models.js.map +1 -0
- package/dist/cjs/foundation/types/outputs.js +6 -0
- package/dist/cjs/foundation/types/outputs.js.map +1 -0
- package/dist/cjs/index.js +6 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/autoSignIn.js +6 -2
- package/dist/cjs/providers/cognito/apis/autoSignIn.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/confirmSignIn.js +4 -4
- package/dist/cjs/providers/cognito/apis/confirmSignIn.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/confirmSignUp.js +8 -5
- package/dist/cjs/providers/cognito/apis/confirmSignUp.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signIn.js +9 -0
- package/dist/cjs/providers/cognito/apis/signIn.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithCustomAuth.js +4 -4
- package/dist/cjs/providers/cognito/apis/signInWithCustomAuth.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithCustomSRPAuth.js +4 -4
- package/dist/cjs/providers/cognito/apis/signInWithCustomSRPAuth.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithSRP.js +7 -4
- package/dist/cjs/providers/cognito/apis/signInWithSRP.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithUserAuth.js +102 -0
- package/dist/cjs/providers/cognito/apis/signInWithUserAuth.js.map +1 -0
- package/dist/cjs/providers/cognito/apis/signInWithUserPassword.js +7 -4
- package/dist/cjs/providers/cognito/apis/signInWithUserPassword.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signUp.js +56 -49
- package/dist/cjs/providers/cognito/apis/signUp.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/signInHelpers.js +60 -42
- package/dist/cjs/providers/cognito/utils/signInHelpers.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/signUpHelpers.js +5 -31
- package/dist/cjs/providers/cognito/utils/signUpHelpers.js.map +1 -1
- package/dist/esm/client/apis/associateWebAuthnCredential.d.ts +14 -0
- package/dist/esm/client/apis/associateWebAuthnCredential.mjs +69 -0
- package/dist/esm/client/apis/associateWebAuthnCredential.mjs.map +1 -0
- package/dist/esm/client/apis/deleteWebAuthnCredential.d.ts +11 -0
- package/dist/esm/client/apis/deleteWebAuthnCredential.mjs +29 -0
- package/dist/esm/client/apis/deleteWebAuthnCredential.mjs.map +1 -0
- package/dist/esm/client/apis/index.d.ts +3 -0
- package/dist/esm/client/apis/index.mjs +4 -0
- package/dist/esm/client/apis/index.mjs.map +1 -0
- package/dist/esm/client/apis/listWebAuthnCredentials.d.ts +12 -0
- package/dist/esm/client/apis/listWebAuthnCredentials.mjs +30 -0
- package/dist/esm/client/apis/listWebAuthnCredentials.mjs.map +1 -0
- package/dist/esm/client/flows/shared/handlePasswordSRP.d.ts +31 -0
- package/dist/esm/client/flows/shared/handlePasswordSRP.mjs +86 -0
- package/dist/esm/client/flows/shared/handlePasswordSRP.mjs.map +1 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallenge.d.ts +23 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallenge.mjs +51 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallenge.mjs.map +1 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPassword.d.ts +16 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPassword.mjs +64 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPassword.mjs.map +1 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.d.ts +18 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.mjs +81 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.mjs.map +1 -0
- package/dist/esm/client/flows/userAuth/handleUserAuthFlow.d.ts +27 -0
- package/dist/esm/client/flows/userAuth/handleUserAuthFlow.mjs +88 -0
- package/dist/esm/client/flows/userAuth/handleUserAuthFlow.mjs.map +1 -0
- package/dist/esm/client/flows/userAuth/handleWebAuthnSignInResult.d.ts +3 -0
- package/dist/esm/client/flows/userAuth/handleWebAuthnSignInResult.mjs +93 -0
- package/dist/esm/client/flows/userAuth/handleWebAuthnSignInResult.mjs.map +1 -0
- package/dist/esm/client/utils/index.d.ts +1 -0
- package/dist/esm/client/utils/index.mjs +4 -0
- package/dist/esm/client/utils/index.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/errors.d.ts +33 -0
- package/dist/esm/client/utils/passkey/errors.mjs +176 -0
- package/dist/esm/client/utils/passkey/errors.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/getIsPasskeySupported.d.ts +6 -0
- package/dist/esm/client/utils/passkey/getIsPasskeySupported.mjs +18 -0
- package/dist/esm/client/utils/passkey/getIsPasskeySupported.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/getIsPasskeySupported.native.d.ts +1 -0
- package/dist/esm/client/utils/passkey/getIsPasskeySupported.native.mjs +10 -0
- package/dist/esm/client/utils/passkey/getIsPasskeySupported.native.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/getPasskey.d.ts +2 -0
- package/dist/esm/client/utils/passkey/getPasskey.mjs +25 -0
- package/dist/esm/client/utils/passkey/getPasskey.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/getPasskey.native.d.ts +1 -0
- package/dist/esm/client/utils/passkey/getPasskey.native.mjs +10 -0
- package/dist/esm/client/utils/passkey/getPasskey.native.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/index.d.ts +2 -0
- package/dist/esm/client/utils/passkey/index.mjs +3 -0
- package/dist/esm/client/utils/passkey/index.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/registerPasskey.d.ts +7 -0
- package/dist/esm/client/utils/passkey/registerPasskey.mjs +30 -0
- package/dist/esm/client/utils/passkey/registerPasskey.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/registerPasskey.native.d.ts +1 -0
- package/dist/esm/client/utils/passkey/registerPasskey.native.mjs +10 -0
- package/dist/esm/client/utils/passkey/registerPasskey.native.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/serde.d.ts +25 -0
- package/dist/esm/client/utils/passkey/serde.mjs +102 -0
- package/dist/esm/client/utils/passkey/serde.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/types/index.d.ts +16 -0
- package/dist/esm/client/utils/passkey/types/index.mjs +18 -0
- package/dist/esm/client/utils/passkey/types/index.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/types/shared.d.ts +106 -0
- package/dist/esm/client/utils/passkey/types/shared.mjs +16 -0
- package/dist/esm/client/utils/passkey/types/shared.mjs.map +1 -0
- package/dist/esm/client/utils/store/autoSignInStore.d.ts +21 -0
- package/dist/esm/client/utils/store/autoSignInStore.mjs +43 -0
- package/dist/esm/client/utils/store/autoSignInStore.mjs.map +1 -0
- package/dist/esm/client/utils/store/index.d.ts +2 -0
- package/dist/esm/client/utils/store/index.mjs +3 -0
- package/dist/esm/client/utils/store/index.mjs.map +1 -0
- package/dist/esm/{providers/cognito/utils → client/utils/store}/signInStore.d.ts +1 -1
- package/dist/esm/client/utils/store/signInStore.mjs.map +1 -0
- package/dist/esm/client/utils/store/types.d.ts +5 -0
- package/dist/esm/client/utils/store/types.mjs +2 -0
- package/dist/esm/client/utils/store/types.mjs.map +1 -0
- package/dist/esm/foundation/apis/deleteWebAuthnCredential.d.ts +3 -0
- package/dist/esm/foundation/apis/deleteWebAuthnCredential.mjs +38 -0
- package/dist/esm/foundation/apis/deleteWebAuthnCredential.mjs.map +1 -0
- package/dist/esm/foundation/apis/index.d.ts +2 -0
- package/dist/esm/foundation/apis/index.mjs +3 -0
- package/dist/esm/foundation/apis/index.mjs.map +1 -0
- package/dist/esm/foundation/apis/listWebAuthnCredentials.d.ts +3 -0
- package/dist/esm/foundation/apis/listWebAuthnCredentials.mjs +51 -0
- package/dist/esm/foundation/apis/listWebAuthnCredentials.mjs.map +1 -0
- package/dist/esm/foundation/convert/base64url/convertArrayBufferToBase64Url.d.ts +6 -0
- package/dist/esm/foundation/convert/base64url/convertArrayBufferToBase64Url.mjs +19 -0
- package/dist/esm/foundation/convert/base64url/convertArrayBufferToBase64Url.mjs.map +1 -0
- package/dist/esm/foundation/convert/base64url/convertBase64UrlToArrayBuffer.d.ts +6 -0
- package/dist/esm/foundation/convert/base64url/convertBase64UrlToArrayBuffer.mjs +15 -0
- package/dist/esm/foundation/convert/base64url/convertBase64UrlToArrayBuffer.mjs.map +1 -0
- package/dist/esm/foundation/convert/base64url/index.d.ts +2 -0
- package/dist/esm/foundation/convert/base64url/index.mjs +3 -0
- package/dist/esm/foundation/convert/base64url/index.mjs.map +1 -0
- package/dist/esm/foundation/convert/index.d.ts +1 -0
- package/dist/esm/foundation/convert/index.mjs +3 -0
- package/dist/esm/foundation/convert/index.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.d.ts +13 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.mjs +17 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.d.ts +13 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.mjs +17 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.d.ts +13 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.mjs +17 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.d.ts +3 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.mjs +32 -7
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.mjs.map +1 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.d.ts +13 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.mjs +17 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/index.d.ts +4 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/index.mjs +4 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/index.mjs.map +1 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolSerializer.d.ts +1 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.d.ts +37 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.mjs +46 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.d.ts +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.mjs +1 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/sdk.d.ts +109 -5
- package/dist/esm/foundation/types/index.d.ts +3 -0
- package/dist/esm/foundation/types/index.mjs +2 -0
- package/dist/esm/foundation/types/index.mjs.map +1 -0
- package/dist/esm/foundation/types/inputs.d.ts +10 -0
- package/dist/esm/foundation/types/inputs.mjs +2 -0
- package/dist/esm/foundation/types/inputs.mjs.map +1 -0
- package/dist/esm/foundation/types/models.d.ts +11 -0
- package/dist/esm/foundation/types/models.mjs +2 -0
- package/dist/esm/foundation/types/models.mjs.map +1 -0
- package/dist/esm/foundation/types/outputs.d.ts +8 -0
- package/dist/esm/foundation/types/outputs.mjs +2 -0
- package/dist/esm/foundation/types/outputs.mjs.map +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.mjs +3 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/autoSignIn.d.ts +1 -1
- package/dist/esm/providers/cognito/apis/autoSignIn.mjs +7 -2
- package/dist/esm/providers/cognito/apis/autoSignIn.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/confirmResetPassword.mjs +2 -0
- package/dist/esm/providers/cognito/apis/confirmResetPassword.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/confirmSignIn.mjs +2 -1
- package/dist/esm/providers/cognito/apis/confirmSignIn.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/confirmSignUp.mjs +11 -5
- package/dist/esm/providers/cognito/apis/confirmSignUp.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/confirmUserAttribute.mjs +2 -0
- package/dist/esm/providers/cognito/apis/confirmUserAttribute.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/deleteUser.mjs +3 -0
- package/dist/esm/providers/cognito/apis/deleteUser.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/deleteUserAttributes.mjs +3 -0
- package/dist/esm/providers/cognito/apis/deleteUserAttributes.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/fetchDevices.mjs +3 -0
- package/dist/esm/providers/cognito/apis/fetchDevices.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/fetchMFAPreference.mjs +3 -0
- package/dist/esm/providers/cognito/apis/fetchMFAPreference.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/forgetDevice.mjs +3 -0
- package/dist/esm/providers/cognito/apis/forgetDevice.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/internal/fetchUserAttributes.mjs +3 -0
- package/dist/esm/providers/cognito/apis/internal/fetchUserAttributes.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/rememberDevice.mjs +3 -0
- package/dist/esm/providers/cognito/apis/rememberDevice.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/resendSignUpCode.mjs +2 -0
- package/dist/esm/providers/cognito/apis/resendSignUpCode.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/resetPassword.mjs +2 -0
- package/dist/esm/providers/cognito/apis/resetPassword.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/sendUserAttributeVerificationCode.mjs +3 -0
- package/dist/esm/providers/cognito/apis/sendUserAttributeVerificationCode.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/setUpTOTP.mjs +2 -0
- package/dist/esm/providers/cognito/apis/setUpTOTP.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signIn.mjs +9 -0
- package/dist/esm/providers/cognito/apis/signIn.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signInWithCustomAuth.mjs +2 -1
- package/dist/esm/providers/cognito/apis/signInWithCustomAuth.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signInWithCustomSRPAuth.mjs +2 -1
- package/dist/esm/providers/cognito/apis/signInWithCustomSRPAuth.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signInWithSRP.mjs +5 -1
- package/dist/esm/providers/cognito/apis/signInWithSRP.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signInWithUserAuth.d.ts +13 -0
- package/dist/esm/providers/cognito/apis/signInWithUserAuth.mjs +104 -0
- package/dist/esm/providers/cognito/apis/signInWithUserAuth.mjs.map +1 -0
- package/dist/esm/providers/cognito/apis/signInWithUserPassword.mjs +6 -2
- package/dist/esm/providers/cognito/apis/signInWithUserPassword.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signOut.mjs +2 -0
- package/dist/esm/providers/cognito/apis/signOut.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signUp.mjs +58 -50
- package/dist/esm/providers/cognito/apis/signUp.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/updateMFAPreference.mjs +3 -0
- package/dist/esm/providers/cognito/apis/updateMFAPreference.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/updatePassword.mjs +2 -0
- package/dist/esm/providers/cognito/apis/updatePassword.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/updateUserAttributes.mjs +3 -0
- package/dist/esm/providers/cognito/apis/updateUserAttributes.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/verifyTOTPSetup.mjs +2 -0
- package/dist/esm/providers/cognito/apis/verifyTOTPSetup.mjs.map +1 -1
- package/dist/esm/providers/cognito/types/index.d.ts +2 -2
- package/dist/esm/providers/cognito/types/inputs.d.ts +4 -0
- package/dist/esm/providers/cognito/types/models.d.ts +7 -1
- package/dist/esm/providers/cognito/types/options.d.ts +2 -1
- package/dist/esm/providers/cognito/types/outputs.d.ts +4 -0
- package/dist/esm/providers/cognito/utils/refreshAuthTokens.mjs +3 -0
- package/dist/esm/providers/cognito/utils/refreshAuthTokens.mjs.map +1 -1
- package/dist/esm/providers/cognito/utils/signInHelpers.d.ts +2 -1
- package/dist/esm/providers/cognito/utils/signInHelpers.mjs +56 -37
- package/dist/esm/providers/cognito/utils/signInHelpers.mjs.map +1 -1
- package/dist/esm/providers/cognito/utils/signUpHelpers.d.ts +0 -6
- package/dist/esm/providers/cognito/utils/signUpHelpers.mjs +5 -26
- package/dist/esm/providers/cognito/utils/signUpHelpers.mjs.map +1 -1
- package/dist/esm/types/inputs.d.ts +2 -2
- package/dist/esm/types/models.d.ts +9 -1
- package/package.json +104 -104
- package/src/client/apis/associateWebAuthnCredential.ts +94 -0
- package/src/client/apis/deleteWebAuthnCredential.ts +24 -0
- package/src/client/apis/index.ts +6 -0
- package/src/client/apis/listWebAuthnCredentials.ts +28 -0
- package/src/client/flows/shared/handlePasswordSRP.ts +123 -0
- package/src/client/flows/userAuth/handleSelectChallenge.ts +62 -0
- package/src/client/flows/userAuth/handleSelectChallengeWithPassword.ts +74 -0
- package/src/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.ts +105 -0
- package/src/client/flows/userAuth/handleUserAuthFlow.ts +125 -0
- package/src/client/flows/userAuth/handleWebAuthnSignInResult.ts +130 -0
- package/src/client/utils/index.ts +4 -0
- package/src/client/utils/passkey/errors.ts +214 -0
- package/src/client/utils/passkey/getIsPasskeySupported.native.ts +8 -0
- package/src/client/utils/passkey/getIsPasskeySupported.ts +18 -0
- package/src/client/utils/passkey/getPasskey.native.ts +8 -0
- package/src/client/utils/passkey/getPasskey.ts +40 -0
- package/src/client/utils/passkey/index.ts +5 -0
- package/src/client/utils/passkey/registerPasskey.native.ts +8 -0
- package/src/client/utils/passkey/registerPasskey.ts +48 -0
- package/src/client/utils/passkey/serde.ts +151 -0
- package/src/client/utils/passkey/types/index.ts +61 -0
- package/src/client/utils/passkey/types/shared.ts +131 -0
- package/src/client/utils/store/autoSignInStore.ts +64 -0
- package/src/client/utils/store/index.ts +5 -0
- package/src/{providers/cognito/utils → client/utils/store}/signInStore.ts +3 -8
- package/src/client/utils/store/types.ts +9 -0
- package/src/foundation/apis/deleteWebAuthnCredential.ts +45 -0
- package/src/foundation/apis/index.ts +5 -0
- package/src/foundation/apis/listWebAuthnCredentials.ts +68 -0
- package/src/foundation/convert/base64url/convertArrayBufferToBase64Url.ts +18 -0
- package/src/foundation/convert/base64url/convertBase64UrlToArrayBuffer.ts +18 -0
- package/src/foundation/convert/base64url/index.ts +5 -0
- package/src/foundation/convert/index.ts +7 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.ts +31 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.ts +31 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.ts +31 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.ts +44 -7
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.ts +31 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/index.ts +4 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolSerializer.ts +5 -1
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.ts +43 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.ts +2 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/types/sdk.ts +141 -5
- package/src/foundation/types/index.ts +9 -0
- package/src/foundation/types/inputs.ts +14 -0
- package/src/foundation/types/models.ts +14 -0
- package/src/foundation/types/outputs.ts +12 -0
- package/src/index.ts +14 -0
- package/src/providers/cognito/apis/autoSignIn.ts +6 -2
- package/src/providers/cognito/apis/confirmSignIn.ts +1 -1
- package/src/providers/cognito/apis/confirmSignUp.ts +10 -9
- package/src/providers/cognito/apis/signIn.ts +10 -0
- package/src/providers/cognito/apis/signInWithCustomAuth.ts +1 -1
- package/src/providers/cognito/apis/signInWithCustomSRPAuth.ts +1 -1
- package/src/providers/cognito/apis/signInWithSRP.ts +6 -1
- package/src/providers/cognito/apis/signInWithUserAuth.ts +141 -0
- package/src/providers/cognito/apis/signInWithUserPassword.ts +7 -2
- package/src/providers/cognito/apis/signUp.ts +81 -72
- package/src/providers/cognito/types/index.ts +2 -0
- package/src/providers/cognito/types/inputs.ts +5 -0
- package/src/providers/cognito/types/models.ts +13 -0
- package/src/providers/cognito/types/options.ts +7 -1
- package/src/providers/cognito/types/outputs.ts +5 -0
- package/src/providers/cognito/utils/signInHelpers.ts +77 -55
- package/src/providers/cognito/utils/signUpHelpers.ts +6 -31
- package/src/types/inputs.ts +2 -2
- package/src/types/models.ts +13 -0
- package/dist/cjs/providers/cognito/utils/signInStore.js.map +0 -1
- package/dist/esm/providers/cognito/utils/signInStore.mjs.map +0 -1
- /package/dist/cjs/{providers/cognito/utils → client/utils/store}/signInStore.js +0 -0
- /package/dist/esm/{providers/cognito/utils → client/utils/store}/signInStore.mjs +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/index.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.createDeleteUserAttributesClient = exports.createListDevicesClient = exports.createUpdateDeviceStatusClient = exports.createVerifyUserAttributeClient = exports.createUpdateUserAttributesClient = exports.createGlobalSignOutClient = exports.createGetUserAttributeVerificationCodeClient = exports.createDeleteUserClient = exports.createForgetDeviceClient = exports.createConfirmDeviceClient = exports.createChangePasswordClient = exports.createGetUserClient = exports.createSetUserMFAPreferenceClient = exports.createAssociateSoftwareTokenClient = exports.createVerifySoftwareTokenClient = exports.createResendConfirmationCodeClient = exports.createRespondToAuthChallengeClient = exports.createConfirmForgotPasswordClient = exports.createForgotPasswordClient = exports.createConfirmSignUpClient = exports.createSignUpClient = exports.createRevokeTokenClient = exports.createInitiateAuthClient = void 0;\nvar createInitiateAuthClient_1 = require(\"./createInitiateAuthClient\");\nObject.defineProperty(exports, \"createInitiateAuthClient\", { enumerable: true, get: function () { return createInitiateAuthClient_1.createInitiateAuthClient; } });\nvar createRevokeTokenClient_1 = require(\"./createRevokeTokenClient\");\nObject.defineProperty(exports, \"createRevokeTokenClient\", { enumerable: true, get: function () { return createRevokeTokenClient_1.createRevokeTokenClient; } });\nvar createSignUpClient_1 = require(\"./createSignUpClient\");\nObject.defineProperty(exports, \"createSignUpClient\", { enumerable: true, get: function () { return createSignUpClient_1.createSignUpClient; } });\nvar createConfirmSignUpClient_1 = require(\"./createConfirmSignUpClient\");\nObject.defineProperty(exports, \"createConfirmSignUpClient\", { enumerable: true, get: function () { return createConfirmSignUpClient_1.createConfirmSignUpClient; } });\nvar createForgotPasswordClient_1 = require(\"./createForgotPasswordClient\");\nObject.defineProperty(exports, \"createForgotPasswordClient\", { enumerable: true, get: function () { return createForgotPasswordClient_1.createForgotPasswordClient; } });\nvar createConfirmForgotPasswordClient_1 = require(\"./createConfirmForgotPasswordClient\");\nObject.defineProperty(exports, \"createConfirmForgotPasswordClient\", { enumerable: true, get: function () { return createConfirmForgotPasswordClient_1.createConfirmForgotPasswordClient; } });\nvar createRespondToAuthChallengeClient_1 = require(\"./createRespondToAuthChallengeClient\");\nObject.defineProperty(exports, \"createRespondToAuthChallengeClient\", { enumerable: true, get: function () { return createRespondToAuthChallengeClient_1.createRespondToAuthChallengeClient; } });\nvar createResendConfirmationCodeClient_1 = require(\"./createResendConfirmationCodeClient\");\nObject.defineProperty(exports, \"createResendConfirmationCodeClient\", { enumerable: true, get: function () { return createResendConfirmationCodeClient_1.createResendConfirmationCodeClient; } });\nvar createVerifySoftwareTokenClient_1 = require(\"./createVerifySoftwareTokenClient\");\nObject.defineProperty(exports, \"createVerifySoftwareTokenClient\", { enumerable: true, get: function () { return createVerifySoftwareTokenClient_1.createVerifySoftwareTokenClient; } });\nvar createAssociateSoftwareTokenClient_1 = require(\"./createAssociateSoftwareTokenClient\");\nObject.defineProperty(exports, \"createAssociateSoftwareTokenClient\", { enumerable: true, get: function () { return createAssociateSoftwareTokenClient_1.createAssociateSoftwareTokenClient; } });\nvar createSetUserMFAPreferenceClient_1 = require(\"./createSetUserMFAPreferenceClient\");\nObject.defineProperty(exports, \"createSetUserMFAPreferenceClient\", { enumerable: true, get: function () { return createSetUserMFAPreferenceClient_1.createSetUserMFAPreferenceClient; } });\nvar createGetUserClient_1 = require(\"./createGetUserClient\");\nObject.defineProperty(exports, \"createGetUserClient\", { enumerable: true, get: function () { return createGetUserClient_1.createGetUserClient; } });\nvar createChangePasswordClient_1 = require(\"./createChangePasswordClient\");\nObject.defineProperty(exports, \"createChangePasswordClient\", { enumerable: true, get: function () { return createChangePasswordClient_1.createChangePasswordClient; } });\nvar createConfirmDeviceClient_1 = require(\"./createConfirmDeviceClient\");\nObject.defineProperty(exports, \"createConfirmDeviceClient\", { enumerable: true, get: function () { return createConfirmDeviceClient_1.createConfirmDeviceClient; } });\nvar createForgetDeviceClient_1 = require(\"./createForgetDeviceClient\");\nObject.defineProperty(exports, \"createForgetDeviceClient\", { enumerable: true, get: function () { return createForgetDeviceClient_1.createForgetDeviceClient; } });\nvar createDeleteUserClient_1 = require(\"./createDeleteUserClient\");\nObject.defineProperty(exports, \"createDeleteUserClient\", { enumerable: true, get: function () { return createDeleteUserClient_1.createDeleteUserClient; } });\nvar createGetUserAttributeVerificationCodeClient_1 = require(\"./createGetUserAttributeVerificationCodeClient\");\nObject.defineProperty(exports, \"createGetUserAttributeVerificationCodeClient\", { enumerable: true, get: function () { return createGetUserAttributeVerificationCodeClient_1.createGetUserAttributeVerificationCodeClient; } });\nvar createGlobalSignOutClient_1 = require(\"./createGlobalSignOutClient\");\nObject.defineProperty(exports, \"createGlobalSignOutClient\", { enumerable: true, get: function () { return createGlobalSignOutClient_1.createGlobalSignOutClient; } });\nvar createUpdateUserAttributesClient_1 = require(\"./createUpdateUserAttributesClient\");\nObject.defineProperty(exports, \"createUpdateUserAttributesClient\", { enumerable: true, get: function () { return createUpdateUserAttributesClient_1.createUpdateUserAttributesClient; } });\nvar createVerifyUserAttributeClient_1 = require(\"./createVerifyUserAttributeClient\");\nObject.defineProperty(exports, \"createVerifyUserAttributeClient\", { enumerable: true, get: function () { return createVerifyUserAttributeClient_1.createVerifyUserAttributeClient; } });\nvar createUpdateDeviceStatusClient_1 = require(\"./createUpdateDeviceStatusClient\");\nObject.defineProperty(exports, \"createUpdateDeviceStatusClient\", { enumerable: true, get: function () { return createUpdateDeviceStatusClient_1.createUpdateDeviceStatusClient; } });\nvar createListDevicesClient_1 = require(\"./createListDevicesClient\");\nObject.defineProperty(exports, \"createListDevicesClient\", { enumerable: true, get: function () { return createListDevicesClient_1.createListDevicesClient; } });\nvar createDeleteUserAttributesClient_1 = require(\"./createDeleteUserAttributesClient\");\nObject.defineProperty(exports, \"createDeleteUserAttributesClient\", { enumerable: true, get: function () { return createDeleteUserAttributesClient_1.createDeleteUserAttributesClient; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,8BAA8B,GAAG,OAAO,CAAC,+BAA+B,GAAG,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,4CAA4C,GAAG,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,kCAAkC,GAAG,OAAO,CAAC,+BAA+B,GAAG,OAAO,CAAC,kCAAkC,GAAG,OAAO,CAAC,kCAAkC,GAAG,OAAO,CAAC,iCAAiC,GAAG,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,GAAG,KAAK,CAAC,CAAC;AAC34B,IAAI,0BAA0B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AACvE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,0BAA0B,EAAE,EAAE,UAAU,EAAE,IAAI,E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AAG,OAAO,CAAC,oCAAoC,CAAC,CAAC;AACvF,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,kCAAkC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,kCAAkC,CAAC,gCAAgC,CAAC,EAAE,EAAE,CAAC;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/index.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.createDeleteWebAuthnCredentialClient = exports.createListWebAuthnCredentialsClient = exports.createCompleteWebAuthnRegistrationClient = exports.createStartWebAuthnRegistrationClient = exports.createDeleteUserAttributesClient = exports.createListDevicesClient = exports.createUpdateDeviceStatusClient = exports.createVerifyUserAttributeClient = exports.createUpdateUserAttributesClient = exports.createGlobalSignOutClient = exports.createGetUserAttributeVerificationCodeClient = exports.createDeleteUserClient = exports.createForgetDeviceClient = exports.createConfirmDeviceClient = exports.createChangePasswordClient = exports.createGetUserClient = exports.createSetUserMFAPreferenceClient = exports.createAssociateSoftwareTokenClient = exports.createVerifySoftwareTokenClient = exports.createResendConfirmationCodeClient = exports.createRespondToAuthChallengeClient = exports.createConfirmForgotPasswordClient = exports.createForgotPasswordClient = exports.createConfirmSignUpClient = exports.createSignUpClient = exports.createRevokeTokenClient = exports.createInitiateAuthClient = void 0;\nvar createInitiateAuthClient_1 = require(\"./createInitiateAuthClient\");\nObject.defineProperty(exports, \"createInitiateAuthClient\", { enumerable: true, get: function () { return createInitiateAuthClient_1.createInitiateAuthClient; } });\nvar createRevokeTokenClient_1 = require(\"./createRevokeTokenClient\");\nObject.defineProperty(exports, \"createRevokeTokenClient\", { enumerable: true, get: function () { return createRevokeTokenClient_1.createRevokeTokenClient; } });\nvar createSignUpClient_1 = require(\"./createSignUpClient\");\nObject.defineProperty(exports, \"createSignUpClient\", { enumerable: true, get: function () { return createSignUpClient_1.createSignUpClient; } });\nvar createConfirmSignUpClient_1 = require(\"./createConfirmSignUpClient\");\nObject.defineProperty(exports, \"createConfirmSignUpClient\", { enumerable: true, get: function () { return createConfirmSignUpClient_1.createConfirmSignUpClient; } });\nvar createForgotPasswordClient_1 = require(\"./createForgotPasswordClient\");\nObject.defineProperty(exports, \"createForgotPasswordClient\", { enumerable: true, get: function () { return createForgotPasswordClient_1.createForgotPasswordClient; } });\nvar createConfirmForgotPasswordClient_1 = require(\"./createConfirmForgotPasswordClient\");\nObject.defineProperty(exports, \"createConfirmForgotPasswordClient\", { enumerable: true, get: function () { return createConfirmForgotPasswordClient_1.createConfirmForgotPasswordClient; } });\nvar createRespondToAuthChallengeClient_1 = require(\"./createRespondToAuthChallengeClient\");\nObject.defineProperty(exports, \"createRespondToAuthChallengeClient\", { enumerable: true, get: function () { return createRespondToAuthChallengeClient_1.createRespondToAuthChallengeClient; } });\nvar createResendConfirmationCodeClient_1 = require(\"./createResendConfirmationCodeClient\");\nObject.defineProperty(exports, \"createResendConfirmationCodeClient\", { enumerable: true, get: function () { return createResendConfirmationCodeClient_1.createResendConfirmationCodeClient; } });\nvar createVerifySoftwareTokenClient_1 = require(\"./createVerifySoftwareTokenClient\");\nObject.defineProperty(exports, \"createVerifySoftwareTokenClient\", { enumerable: true, get: function () { return createVerifySoftwareTokenClient_1.createVerifySoftwareTokenClient; } });\nvar createAssociateSoftwareTokenClient_1 = require(\"./createAssociateSoftwareTokenClient\");\nObject.defineProperty(exports, \"createAssociateSoftwareTokenClient\", { enumerable: true, get: function () { return createAssociateSoftwareTokenClient_1.createAssociateSoftwareTokenClient; } });\nvar createSetUserMFAPreferenceClient_1 = require(\"./createSetUserMFAPreferenceClient\");\nObject.defineProperty(exports, \"createSetUserMFAPreferenceClient\", { enumerable: true, get: function () { return createSetUserMFAPreferenceClient_1.createSetUserMFAPreferenceClient; } });\nvar createGetUserClient_1 = require(\"./createGetUserClient\");\nObject.defineProperty(exports, \"createGetUserClient\", { enumerable: true, get: function () { return createGetUserClient_1.createGetUserClient; } });\nvar createChangePasswordClient_1 = require(\"./createChangePasswordClient\");\nObject.defineProperty(exports, \"createChangePasswordClient\", { enumerable: true, get: function () { return createChangePasswordClient_1.createChangePasswordClient; } });\nvar createConfirmDeviceClient_1 = require(\"./createConfirmDeviceClient\");\nObject.defineProperty(exports, \"createConfirmDeviceClient\", { enumerable: true, get: function () { return createConfirmDeviceClient_1.createConfirmDeviceClient; } });\nvar createForgetDeviceClient_1 = require(\"./createForgetDeviceClient\");\nObject.defineProperty(exports, \"createForgetDeviceClient\", { enumerable: true, get: function () { return createForgetDeviceClient_1.createForgetDeviceClient; } });\nvar createDeleteUserClient_1 = require(\"./createDeleteUserClient\");\nObject.defineProperty(exports, \"createDeleteUserClient\", { enumerable: true, get: function () { return createDeleteUserClient_1.createDeleteUserClient; } });\nvar createGetUserAttributeVerificationCodeClient_1 = require(\"./createGetUserAttributeVerificationCodeClient\");\nObject.defineProperty(exports, \"createGetUserAttributeVerificationCodeClient\", { enumerable: true, get: function () { return createGetUserAttributeVerificationCodeClient_1.createGetUserAttributeVerificationCodeClient; } });\nvar createGlobalSignOutClient_1 = require(\"./createGlobalSignOutClient\");\nObject.defineProperty(exports, \"createGlobalSignOutClient\", { enumerable: true, get: function () { return createGlobalSignOutClient_1.createGlobalSignOutClient; } });\nvar createUpdateUserAttributesClient_1 = require(\"./createUpdateUserAttributesClient\");\nObject.defineProperty(exports, \"createUpdateUserAttributesClient\", { enumerable: true, get: function () { return createUpdateUserAttributesClient_1.createUpdateUserAttributesClient; } });\nvar createVerifyUserAttributeClient_1 = require(\"./createVerifyUserAttributeClient\");\nObject.defineProperty(exports, \"createVerifyUserAttributeClient\", { enumerable: true, get: function () { return createVerifyUserAttributeClient_1.createVerifyUserAttributeClient; } });\nvar createUpdateDeviceStatusClient_1 = require(\"./createUpdateDeviceStatusClient\");\nObject.defineProperty(exports, \"createUpdateDeviceStatusClient\", { enumerable: true, get: function () { return createUpdateDeviceStatusClient_1.createUpdateDeviceStatusClient; } });\nvar createListDevicesClient_1 = require(\"./createListDevicesClient\");\nObject.defineProperty(exports, \"createListDevicesClient\", { enumerable: true, get: function () { return createListDevicesClient_1.createListDevicesClient; } });\nvar createDeleteUserAttributesClient_1 = require(\"./createDeleteUserAttributesClient\");\nObject.defineProperty(exports, \"createDeleteUserAttributesClient\", { enumerable: true, get: function () { return createDeleteUserAttributesClient_1.createDeleteUserAttributesClient; } });\nvar createStartWebAuthnRegistrationClient_1 = require(\"./createStartWebAuthnRegistrationClient\");\nObject.defineProperty(exports, \"createStartWebAuthnRegistrationClient\", { enumerable: true, get: function () { return createStartWebAuthnRegistrationClient_1.createStartWebAuthnRegistrationClient; } });\nvar createCompleteWebAuthnRegistrationClient_1 = require(\"./createCompleteWebAuthnRegistrationClient\");\nObject.defineProperty(exports, \"createCompleteWebAuthnRegistrationClient\", { enumerable: true, get: function () { return createCompleteWebAuthnRegistrationClient_1.createCompleteWebAuthnRegistrationClient; } });\nvar createListWebAuthnCredentialsClient_1 = require(\"./createListWebAuthnCredentialsClient\");\nObject.defineProperty(exports, \"createListWebAuthnCredentialsClient\", { enumerable: true, get: function () { return createListWebAuthnCredentialsClient_1.createListWebAuthnCredentialsClient; } });\nvar createDeleteWebAuthnCredentialClient_1 = require(\"./createDeleteWebAuthnCredentialClient\");\nObject.defineProperty(exports, \"createDeleteWebAuthnCredentialClient\", { enumerable: true, get: function () { return createDeleteWebAuthnCredentialClient_1.createDeleteWebAuthnCredentialClient; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,oCAAoC,GAAG,OAAO,CAAC,mCAAmC,GAAG,OAAO,CAAC,wCAAwC,GAAG,OAAO,CAAC,qCAAqC,GAAG,OAAO,CA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CAAC,4CAA4C,CAAC,CAAC;AACvG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,0CAA0C,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,0CAA0C,CAAC,wCAAwC,CAAC,EAAE,EAAE,CAAC,CAAC;AACnN,IAAI,qCAAqC,GAAG,OAAO,CAAC,uCAAuC,CAAC,CAAC;AAC7F,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qCAAqC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,qCAAqC,CAAC,mCAAmC,CAAC,EAAE,EAAE,CAAC,CAAC;AACpM,IAAI,sCAAsC,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;AAC/F,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,sCAAsC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,sCAAsC,CAAC,oCAAoC,CAAC,EAAE,EAAE,CAAC;;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DeleteWebAuthnCredentialException = exports.ListWebAuthnCredentialsException = exports.CompleteWebAuthnRegistrationException = exports.StartWebAuthnRegistrationException = void 0;
|
|
7
|
+
(function (StartWebAuthnRegistrationException) {
|
|
8
|
+
StartWebAuthnRegistrationException["ForbiddenException"] = "ForbiddenException";
|
|
9
|
+
StartWebAuthnRegistrationException["InternalErrorException"] = "InternalErrorException";
|
|
10
|
+
StartWebAuthnRegistrationException["InvalidParameterException"] = "InvalidParameterException";
|
|
11
|
+
StartWebAuthnRegistrationException["LimitExceededException"] = "LimitExceededException";
|
|
12
|
+
StartWebAuthnRegistrationException["NotAuthorizedException"] = "NotAuthorizedException";
|
|
13
|
+
StartWebAuthnRegistrationException["TooManyRequestsException"] = "TooManyRequestsException";
|
|
14
|
+
StartWebAuthnRegistrationException["WebAuthnNotEnabledException"] = "WebAuthnNotEnabledException";
|
|
15
|
+
StartWebAuthnRegistrationException["WebAuthnConfigurationMissingException"] = "WebAuthnConfigurationMissingException";
|
|
16
|
+
})(exports.StartWebAuthnRegistrationException || (exports.StartWebAuthnRegistrationException = {}));
|
|
17
|
+
(function (CompleteWebAuthnRegistrationException) {
|
|
18
|
+
CompleteWebAuthnRegistrationException["ForbiddenException"] = "ForbiddenException";
|
|
19
|
+
CompleteWebAuthnRegistrationException["InternalErrorException"] = "InternalErrorException";
|
|
20
|
+
CompleteWebAuthnRegistrationException["InvalidParameterException"] = "InvalidParameterException";
|
|
21
|
+
CompleteWebAuthnRegistrationException["LimitExceededException"] = "LimitExceededException";
|
|
22
|
+
CompleteWebAuthnRegistrationException["NotAuthorizedException"] = "NotAuthorizedException";
|
|
23
|
+
CompleteWebAuthnRegistrationException["TooManyRequestsException"] = "TooManyRequestsException";
|
|
24
|
+
CompleteWebAuthnRegistrationException["WebAuthnNotEnabledException"] = "WebAuthnNotEnabledException";
|
|
25
|
+
CompleteWebAuthnRegistrationException["WebAuthnChallengeNotFoundException"] = "WebAuthnChallengeNotFoundException";
|
|
26
|
+
CompleteWebAuthnRegistrationException["WebAuthnRelyingPartyMismatchException"] = "WebAuthnRelyingPartyMismatchException";
|
|
27
|
+
CompleteWebAuthnRegistrationException["WebAuthnClientMismatchException"] = "WebAuthnClientMismatchException";
|
|
28
|
+
CompleteWebAuthnRegistrationException["WebAuthnOriginNotAllowedException"] = "WebAuthnOriginNotAllowedException";
|
|
29
|
+
CompleteWebAuthnRegistrationException["WebAuthnCredentialNotSupportedException"] = "WebAuthnCredentialNotSupportedException";
|
|
30
|
+
})(exports.CompleteWebAuthnRegistrationException || (exports.CompleteWebAuthnRegistrationException = {}));
|
|
31
|
+
(function (ListWebAuthnCredentialsException) {
|
|
32
|
+
ListWebAuthnCredentialsException["ForbiddenException"] = "ForbiddenException";
|
|
33
|
+
ListWebAuthnCredentialsException["InternalErrorException"] = "InternalErrorException";
|
|
34
|
+
ListWebAuthnCredentialsException["InvalidParameterException"] = "InvalidParameterException";
|
|
35
|
+
ListWebAuthnCredentialsException["NotAuthorizedException"] = "NotAuthorizedException";
|
|
36
|
+
})(exports.ListWebAuthnCredentialsException || (exports.ListWebAuthnCredentialsException = {}));
|
|
37
|
+
(function (DeleteWebAuthnCredentialException) {
|
|
38
|
+
DeleteWebAuthnCredentialException["ForbiddenException"] = "ForbiddenException";
|
|
39
|
+
DeleteWebAuthnCredentialException["InternalErrorException"] = "InternalErrorException";
|
|
40
|
+
DeleteWebAuthnCredentialException["InvalidParameterException"] = "InvalidParameterException";
|
|
41
|
+
DeleteWebAuthnCredentialException["NotAuthorizedException"] = "NotAuthorizedException";
|
|
42
|
+
DeleteWebAuthnCredentialException["ResourceNotFoundException"] = "ResourceNotFoundException";
|
|
43
|
+
})(exports.DeleteWebAuthnCredentialException || (exports.DeleteWebAuthnCredentialException = {}));
|
|
44
|
+
//# sourceMappingURL=errors.js.map
|
package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.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.DeleteWebAuthnCredentialException = exports.ListWebAuthnCredentialsException = exports.CompleteWebAuthnRegistrationException = exports.StartWebAuthnRegistrationException = void 0;\nvar StartWebAuthnRegistrationException;\n(function (StartWebAuthnRegistrationException) {\n StartWebAuthnRegistrationException[\"ForbiddenException\"] = \"ForbiddenException\";\n StartWebAuthnRegistrationException[\"InternalErrorException\"] = \"InternalErrorException\";\n StartWebAuthnRegistrationException[\"InvalidParameterException\"] = \"InvalidParameterException\";\n StartWebAuthnRegistrationException[\"LimitExceededException\"] = \"LimitExceededException\";\n StartWebAuthnRegistrationException[\"NotAuthorizedException\"] = \"NotAuthorizedException\";\n StartWebAuthnRegistrationException[\"TooManyRequestsException\"] = \"TooManyRequestsException\";\n StartWebAuthnRegistrationException[\"WebAuthnNotEnabledException\"] = \"WebAuthnNotEnabledException\";\n StartWebAuthnRegistrationException[\"WebAuthnConfigurationMissingException\"] = \"WebAuthnConfigurationMissingException\";\n})(StartWebAuthnRegistrationException = exports.StartWebAuthnRegistrationException || (exports.StartWebAuthnRegistrationException = {}));\nvar CompleteWebAuthnRegistrationException;\n(function (CompleteWebAuthnRegistrationException) {\n CompleteWebAuthnRegistrationException[\"ForbiddenException\"] = \"ForbiddenException\";\n CompleteWebAuthnRegistrationException[\"InternalErrorException\"] = \"InternalErrorException\";\n CompleteWebAuthnRegistrationException[\"InvalidParameterException\"] = \"InvalidParameterException\";\n CompleteWebAuthnRegistrationException[\"LimitExceededException\"] = \"LimitExceededException\";\n CompleteWebAuthnRegistrationException[\"NotAuthorizedException\"] = \"NotAuthorizedException\";\n CompleteWebAuthnRegistrationException[\"TooManyRequestsException\"] = \"TooManyRequestsException\";\n CompleteWebAuthnRegistrationException[\"WebAuthnNotEnabledException\"] = \"WebAuthnNotEnabledException\";\n CompleteWebAuthnRegistrationException[\"WebAuthnChallengeNotFoundException\"] = \"WebAuthnChallengeNotFoundException\";\n CompleteWebAuthnRegistrationException[\"WebAuthnRelyingPartyMismatchException\"] = \"WebAuthnRelyingPartyMismatchException\";\n CompleteWebAuthnRegistrationException[\"WebAuthnClientMismatchException\"] = \"WebAuthnClientMismatchException\";\n CompleteWebAuthnRegistrationException[\"WebAuthnOriginNotAllowedException\"] = \"WebAuthnOriginNotAllowedException\";\n CompleteWebAuthnRegistrationException[\"WebAuthnCredentialNotSupportedException\"] = \"WebAuthnCredentialNotSupportedException\";\n})(CompleteWebAuthnRegistrationException = exports.CompleteWebAuthnRegistrationException || (exports.CompleteWebAuthnRegistrationException = {}));\nvar ListWebAuthnCredentialsException;\n(function (ListWebAuthnCredentialsException) {\n ListWebAuthnCredentialsException[\"ForbiddenException\"] = \"ForbiddenException\";\n ListWebAuthnCredentialsException[\"InternalErrorException\"] = \"InternalErrorException\";\n ListWebAuthnCredentialsException[\"InvalidParameterException\"] = \"InvalidParameterException\";\n ListWebAuthnCredentialsException[\"NotAuthorizedException\"] = \"NotAuthorizedException\";\n})(ListWebAuthnCredentialsException = exports.ListWebAuthnCredentialsException || (exports.ListWebAuthnCredentialsException = {}));\nvar DeleteWebAuthnCredentialException;\n(function (DeleteWebAuthnCredentialException) {\n DeleteWebAuthnCredentialException[\"ForbiddenException\"] = \"ForbiddenException\";\n DeleteWebAuthnCredentialException[\"InternalErrorException\"] = \"InternalErrorException\";\n DeleteWebAuthnCredentialException[\"InvalidParameterException\"] = \"InvalidParameterException\";\n DeleteWebAuthnCredentialException[\"NotAuthorizedException\"] = \"NotAuthorizedException\";\n DeleteWebAuthnCredentialException[\"ResourceNotFoundException\"] = \"ResourceNotFoundException\";\n})(DeleteWebAuthnCredentialException = exports.DeleteWebAuthnCredentialException || (exports.DeleteWebAuthnCredentialException = {}));\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,iCAAiC,GAAG,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,qCAAqC,GAAG,OAAO,CAAC,kCAAkC,GAAG,KAAK,CAAC,CAAC;AAE3L,CAAC,UAAU,kCAAkC,EAAE;AAC/C,IAAI,kCAAkC,CAAC,oBAAoB,CAAC,GAAG,oBAAoB,CAAC;AACpF,IAAI,kCAAkC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC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CAAyC,CAAC;AACjI,CAAC,EAA0C,OAAO,CAAC,qCAAqC,KAAK,OAAO,CAAC,qCAAqC,GAAG,EAAE,CAAC,CAAC,CAAC;AAElJ,CAAC,UAAU,gCAAgC,EAAE;AAC7C,IAAI,gCAAgC,CAAC,oBAAoB,CAAC,GAAG,oBAAoB,CAAC;AAClF,IAAI,gCAAgC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC1F,IAAI,gCAAgC,CAAC,2BAA2B,CAAC,GAAG,2BAA2B,CAAC;AAChG,IAAI,gCAAgC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC1F,CAAC,EAAqC,OAAO,CAAC,gCAAgC,KAAK,OAAO,CAAC,gCAAgC,GAAG,EAAE,CAAC,CAAC,CAAC;AAEnI,CAAC,UAAU,iCAAiC,EAAE;AAC9C,IAAI,iCAAiC,CAAC,oBAAoB,CAAC,GAAG,oBAAoB,CAAC;AACnF,IAAI,iCAAiC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC3F,IAAI,iCAAiC,CAAC,2BAA2B,CAAC,GAAG,2BAA2B,CAAC;AACjG,IAAI,iCAAiC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC3F,IAAI,iCAAiC,CAAC,2BAA2B,CAAC,GAAG,2BAA2B,CAAC;AACjG,CAAC,EAAsC,OAAO,CAAC,iCAAiC,KAAK,OAAO,CAAC,iCAAiC,GAAG,EAAE,CAAC,CAAC;;"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
6
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
7
|
tslib_1.__exportStar(require("./sdk"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./serviceClient"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./errors"), exports);
|
|
9
10
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.ts"],"sourcesContent":["\"use strict\";\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.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 });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"./sdk\"), exports);\ntslib_1.__exportStar(require(\"./serviceClient\"), exports);\ntslib_1.__exportStar(require(\"./errors\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AAChD,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAAC;AAC1D,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/foundation/types/index.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 });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputs.js","sources":["../../../../src/foundation/types/inputs.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 });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sources":["../../../../src/foundation/types/models.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 });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outputs.js","sources":["../../../../src/foundation/types/outputs.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 });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.decodeJWT = exports.fetchAuthSession = exports.AuthError = exports.autoSignIn = exports.fetchDevices = exports.forgetDevice = exports.rememberDevice = exports.deleteUser = exports.deleteUserAttributes = exports.sendUserAttributeVerificationCode = exports.signOut = exports.fetchUserAttributes = exports.signInWithRedirect = exports.confirmUserAttribute = exports.getCurrentUser = exports.updateUserAttribute = exports.updateUserAttributes = exports.setUpTOTP = exports.updatePassword = exports.verifyTOTPSetup = exports.fetchMFAPreference = exports.updateMFAPreference = exports.confirmSignIn = exports.confirmSignUp = exports.resendSignUpCode = exports.signIn = exports.confirmResetPassword = exports.resetPassword = exports.signUp = void 0;
|
|
6
|
+
exports.deleteWebAuthnCredential = exports.listWebAuthnCredentials = exports.associateWebAuthnCredential = exports.decodeJWT = exports.fetchAuthSession = exports.AuthError = exports.autoSignIn = exports.fetchDevices = exports.forgetDevice = exports.rememberDevice = exports.deleteUser = exports.deleteUserAttributes = exports.sendUserAttributeVerificationCode = exports.signOut = exports.fetchUserAttributes = exports.signInWithRedirect = exports.confirmUserAttribute = exports.getCurrentUser = exports.updateUserAttribute = exports.updateUserAttributes = exports.setUpTOTP = exports.updatePassword = exports.verifyTOTPSetup = exports.fetchMFAPreference = exports.updateMFAPreference = exports.confirmSignIn = exports.confirmSignUp = exports.resendSignUpCode = exports.signIn = exports.confirmResetPassword = exports.resetPassword = exports.signUp = void 0;
|
|
7
7
|
// Default provider APIs, types & enums
|
|
8
8
|
var cognito_1 = require("./providers/cognito");
|
|
9
9
|
Object.defineProperty(exports, "signUp", { enumerable: true, get: function () { return cognito_1.signUp; } });
|
|
@@ -37,4 +37,9 @@ Object.defineProperty(exports, "AuthError", { enumerable: true, get: function ()
|
|
|
37
37
|
var core_1 = require("@aws-amplify/core");
|
|
38
38
|
Object.defineProperty(exports, "fetchAuthSession", { enumerable: true, get: function () { return core_1.fetchAuthSession; } });
|
|
39
39
|
Object.defineProperty(exports, "decodeJWT", { enumerable: true, get: function () { return core_1.decodeJWT; } });
|
|
40
|
+
var apis_1 = require("./client/apis");
|
|
41
|
+
Object.defineProperty(exports, "associateWebAuthnCredential", { enumerable: true, get: function () { return apis_1.associateWebAuthnCredential; } });
|
|
42
|
+
var apis_2 = require("./client/apis");
|
|
43
|
+
Object.defineProperty(exports, "listWebAuthnCredentials", { enumerable: true, get: function () { return apis_2.listWebAuthnCredentials; } });
|
|
44
|
+
Object.defineProperty(exports, "deleteWebAuthnCredential", { enumerable: true, get: function () { return apis_2.deleteWebAuthnCredential; } });
|
|
40
45
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.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.decodeJWT = exports.fetchAuthSession = exports.AuthError = exports.autoSignIn = exports.fetchDevices = exports.forgetDevice = exports.rememberDevice = exports.deleteUser = exports.deleteUserAttributes = exports.sendUserAttributeVerificationCode = exports.signOut = exports.fetchUserAttributes = exports.signInWithRedirect = exports.confirmUserAttribute = exports.getCurrentUser = exports.updateUserAttribute = exports.updateUserAttributes = exports.setUpTOTP = exports.updatePassword = exports.verifyTOTPSetup = exports.fetchMFAPreference = exports.updateMFAPreference = exports.confirmSignIn = exports.confirmSignUp = exports.resendSignUpCode = exports.signIn = exports.confirmResetPassword = exports.resetPassword = exports.signUp = void 0;\n// Default provider APIs, types & enums\nvar cognito_1 = require(\"./providers/cognito\");\nObject.defineProperty(exports, \"signUp\", { enumerable: true, get: function () { return cognito_1.signUp; } });\nObject.defineProperty(exports, \"resetPassword\", { enumerable: true, get: function () { return cognito_1.resetPassword; } });\nObject.defineProperty(exports, \"confirmResetPassword\", { enumerable: true, get: function () { return cognito_1.confirmResetPassword; } });\nObject.defineProperty(exports, \"signIn\", { enumerable: true, get: function () { return cognito_1.signIn; } });\nObject.defineProperty(exports, \"resendSignUpCode\", { enumerable: true, get: function () { return cognito_1.resendSignUpCode; } });\nObject.defineProperty(exports, \"confirmSignUp\", { enumerable: true, get: function () { return cognito_1.confirmSignUp; } });\nObject.defineProperty(exports, \"confirmSignIn\", { enumerable: true, get: function () { return cognito_1.confirmSignIn; } });\nObject.defineProperty(exports, \"updateMFAPreference\", { enumerable: true, get: function () { return cognito_1.updateMFAPreference; } });\nObject.defineProperty(exports, \"fetchMFAPreference\", { enumerable: true, get: function () { return cognito_1.fetchMFAPreference; } });\nObject.defineProperty(exports, \"verifyTOTPSetup\", { enumerable: true, get: function () { return cognito_1.verifyTOTPSetup; } });\nObject.defineProperty(exports, \"updatePassword\", { enumerable: true, get: function () { return cognito_1.updatePassword; } });\nObject.defineProperty(exports, \"setUpTOTP\", { enumerable: true, get: function () { return cognito_1.setUpTOTP; } });\nObject.defineProperty(exports, \"updateUserAttributes\", { enumerable: true, get: function () { return cognito_1.updateUserAttributes; } });\nObject.defineProperty(exports, \"updateUserAttribute\", { enumerable: true, get: function () { return cognito_1.updateUserAttribute; } });\nObject.defineProperty(exports, \"getCurrentUser\", { enumerable: true, get: function () { return cognito_1.getCurrentUser; } });\nObject.defineProperty(exports, \"confirmUserAttribute\", { enumerable: true, get: function () { return cognito_1.confirmUserAttribute; } });\nObject.defineProperty(exports, \"signInWithRedirect\", { enumerable: true, get: function () { return cognito_1.signInWithRedirect; } });\nObject.defineProperty(exports, \"fetchUserAttributes\", { enumerable: true, get: function () { return cognito_1.fetchUserAttributes; } });\nObject.defineProperty(exports, \"signOut\", { enumerable: true, get: function () { return cognito_1.signOut; } });\nObject.defineProperty(exports, \"sendUserAttributeVerificationCode\", { enumerable: true, get: function () { return cognito_1.sendUserAttributeVerificationCode; } });\nObject.defineProperty(exports, \"deleteUserAttributes\", { enumerable: true, get: function () { return cognito_1.deleteUserAttributes; } });\nObject.defineProperty(exports, \"deleteUser\", { enumerable: true, get: function () { return cognito_1.deleteUser; } });\nObject.defineProperty(exports, \"rememberDevice\", { enumerable: true, get: function () { return cognito_1.rememberDevice; } });\nObject.defineProperty(exports, \"forgetDevice\", { enumerable: true, get: function () { return cognito_1.forgetDevice; } });\nObject.defineProperty(exports, \"fetchDevices\", { enumerable: true, get: function () { return cognito_1.fetchDevices; } });\nObject.defineProperty(exports, \"autoSignIn\", { enumerable: true, get: function () { return cognito_1.autoSignIn; } });\nvar AuthError_1 = require(\"./errors/AuthError\");\nObject.defineProperty(exports, \"AuthError\", { enumerable: true, get: function () { return AuthError_1.AuthError; } });\nvar core_1 = require(\"@aws-amplify/core\");\nObject.defineProperty(exports, \"fetchAuthSession\", { enumerable: true, get: function () { return core_1.fetchAuthSession; } });\nObject.defineProperty(exports, \"decodeJWT\", { enumerable: true, get: function () { return core_1.decodeJWT; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,iCAAiC,GAAG,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,kBAA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E,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC/H,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.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.deleteWebAuthnCredential = exports.listWebAuthnCredentials = exports.associateWebAuthnCredential = exports.decodeJWT = exports.fetchAuthSession = exports.AuthError = exports.autoSignIn = exports.fetchDevices = exports.forgetDevice = exports.rememberDevice = exports.deleteUser = exports.deleteUserAttributes = exports.sendUserAttributeVerificationCode = exports.signOut = exports.fetchUserAttributes = exports.signInWithRedirect = exports.confirmUserAttribute = exports.getCurrentUser = exports.updateUserAttribute = exports.updateUserAttributes = exports.setUpTOTP = exports.updatePassword = exports.verifyTOTPSetup = exports.fetchMFAPreference = exports.updateMFAPreference = exports.confirmSignIn = exports.confirmSignUp = exports.resendSignUpCode = exports.signIn = exports.confirmResetPassword = exports.resetPassword = exports.signUp = void 0;\n// Default provider APIs, types & enums\nvar cognito_1 = require(\"./providers/cognito\");\nObject.defineProperty(exports, \"signUp\", { enumerable: true, get: function () { return cognito_1.signUp; } });\nObject.defineProperty(exports, \"resetPassword\", { enumerable: true, get: function () { return cognito_1.resetPassword; } });\nObject.defineProperty(exports, \"confirmResetPassword\", { enumerable: true, get: function () { return cognito_1.confirmResetPassword; } });\nObject.defineProperty(exports, \"signIn\", { enumerable: true, get: function () { return cognito_1.signIn; } });\nObject.defineProperty(exports, \"resendSignUpCode\", { enumerable: true, get: function () { return cognito_1.resendSignUpCode; } });\nObject.defineProperty(exports, \"confirmSignUp\", { enumerable: true, get: function () { return cognito_1.confirmSignUp; } });\nObject.defineProperty(exports, \"confirmSignIn\", { enumerable: true, get: function () { return cognito_1.confirmSignIn; } });\nObject.defineProperty(exports, \"updateMFAPreference\", { enumerable: true, get: function () { return cognito_1.updateMFAPreference; } });\nObject.defineProperty(exports, \"fetchMFAPreference\", { enumerable: true, get: function () { return cognito_1.fetchMFAPreference; } });\nObject.defineProperty(exports, \"verifyTOTPSetup\", { enumerable: true, get: function () { return cognito_1.verifyTOTPSetup; } });\nObject.defineProperty(exports, \"updatePassword\", { enumerable: true, get: function () { return cognito_1.updatePassword; } });\nObject.defineProperty(exports, \"setUpTOTP\", { enumerable: true, get: function () { return cognito_1.setUpTOTP; } });\nObject.defineProperty(exports, \"updateUserAttributes\", { enumerable: true, get: function () { return cognito_1.updateUserAttributes; } });\nObject.defineProperty(exports, \"updateUserAttribute\", { enumerable: true, get: function () { return cognito_1.updateUserAttribute; } });\nObject.defineProperty(exports, \"getCurrentUser\", { enumerable: true, get: function () { return cognito_1.getCurrentUser; } });\nObject.defineProperty(exports, \"confirmUserAttribute\", { enumerable: true, get: function () { return cognito_1.confirmUserAttribute; } });\nObject.defineProperty(exports, \"signInWithRedirect\", { enumerable: true, get: function () { return cognito_1.signInWithRedirect; } });\nObject.defineProperty(exports, \"fetchUserAttributes\", { enumerable: true, get: function () { return cognito_1.fetchUserAttributes; } });\nObject.defineProperty(exports, \"signOut\", { enumerable: true, get: function () { return cognito_1.signOut; } });\nObject.defineProperty(exports, \"sendUserAttributeVerificationCode\", { enumerable: true, get: function () { return cognito_1.sendUserAttributeVerificationCode; } });\nObject.defineProperty(exports, \"deleteUserAttributes\", { enumerable: true, get: function () { return cognito_1.deleteUserAttributes; } });\nObject.defineProperty(exports, \"deleteUser\", { enumerable: true, get: function () { return cognito_1.deleteUser; } });\nObject.defineProperty(exports, \"rememberDevice\", { enumerable: true, get: function () { return cognito_1.rememberDevice; } });\nObject.defineProperty(exports, \"forgetDevice\", { enumerable: true, get: function () { return cognito_1.forgetDevice; } });\nObject.defineProperty(exports, \"fetchDevices\", { enumerable: true, get: function () { return cognito_1.fetchDevices; } });\nObject.defineProperty(exports, \"autoSignIn\", { enumerable: true, get: function () { return cognito_1.autoSignIn; } });\nvar AuthError_1 = require(\"./errors/AuthError\");\nObject.defineProperty(exports, \"AuthError\", { enumerable: true, get: function () { return AuthError_1.AuthError; } });\nvar core_1 = require(\"@aws-amplify/core\");\nObject.defineProperty(exports, \"fetchAuthSession\", { enumerable: true, get: function () { return core_1.fetchAuthSession; } });\nObject.defineProperty(exports, \"decodeJWT\", { enumerable: true, get: function () { return core_1.decodeJWT; } });\nvar apis_1 = require(\"./client/apis\");\nObject.defineProperty(exports, \"associateWebAuthnCredential\", { enumerable: true, get: function () { return apis_1.associateWebAuthnCredential; } });\nvar apis_2 = require(\"./client/apis\");\nObject.defineProperty(exports, \"listWebAuthnCredentials\", { enumerable: true, get: function () { return apis_2.listWebAuthnCredentials; } });\nObject.defineProperty(exports, \"deleteWebAuthnCredential\", { enumerable: true, get: function () { return apis_2.deleteWebAuthnCredential; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,iCAAiC,GAAG,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,mBAAmB,GAAG,OAAO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= exports.setAutoSignIn = exports.autoSignIn = void 0;
|
|
7
|
+
const store_1 = require("../../../client/utils/store");
|
|
7
8
|
const AuthError_1 = require("../../../errors/AuthError");
|
|
8
9
|
const constants_1 = require("../../../errors/constants");
|
|
9
10
|
const initialAutoSignIn = async () => {
|
|
@@ -109,8 +110,11 @@ exports.setAutoSignIn = setAutoSignIn;
|
|
|
109
110
|
*
|
|
110
111
|
* @internal
|
|
111
112
|
*/
|
|
112
|
-
function resetAutoSignIn() {
|
|
113
|
-
|
|
113
|
+
function resetAutoSignIn(resetCallback = true) {
|
|
114
|
+
if (resetCallback) {
|
|
115
|
+
exports.autoSignIn = initialAutoSignIn;
|
|
116
|
+
}
|
|
117
|
+
store_1.autoSignInStore.dispatch({ type: 'RESET' });
|
|
114
118
|
}
|
|
115
119
|
exports.resetAutoSignIn = resetAutoSignIn;
|
|
116
120
|
//# sourceMappingURL=autoSignIn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoSignIn.js","sources":["../../../../../src/providers/cognito/apis/autoSignIn.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.resetAutoSignIn = exports.setAutoSignIn = exports.autoSignIn = void 0;\nconst AuthError_1 = require(\"../../../errors/AuthError\");\nconst constants_1 = require(\"../../../errors/constants\");\nconst initialAutoSignIn = async () => {\n throw new AuthError_1.AuthError({\n name: constants_1.AUTO_SIGN_IN_EXCEPTION,\n message: 'The autoSignIn flow has not started, or has been cancelled/completed.',\n recoverySuggestion: 'Please try to use the signIn API or log out before starting a new autoSignIn flow.',\n });\n};\n/**\n * Signs a user in automatically after finishing the sign-up process.\n *\n * This API will automatically sign a user in if the autoSignIn flow has been completed in the following cases:\n * - User confirmed their account with a verification code sent to their phone or email (default option).\n * - User confirmed their account with a verification link sent to their phone or email. In order to\n * enable this option you need to go to the Amazon Cognito [console](https://aws.amazon.com/pm/cognito),\n * look for your userpool, then go to the `Messaging` tab and enable `link` mode inside the `Verification message` option.\n * Finally you need to define the `signUpVerificationMethod` in your `Auth` config.\n *\n * @example\n * ```typescript\n * Amplify.configure({\n * Auth: {\n * Cognito: {\n * ...cognitoConfig,\n * signUpVerificationMethod: \"link\" // the default value is \"code\"\n * }\n *\t}});\n * ```\n *\n * @throws AutoSignInException - Thrown when the autoSignIn flow has not started, or has been cancelled/completed.\n * @returns The signInOutput.\n *\n * @example\n * ```typescript\n * // handleSignUp.ts\n * async function handleSignUp(\n * username:string,\n * password:string\n * ){\n * try {\n * const { nextStep } = await signUp({\n * username,\n * password,\n * options: {\n * userAttributes:{ email:'email@email.com'},\n * autoSignIn: true // This enables the auto sign-in flow.\n * },\n * });\n *\n * handleSignUpStep(nextStep);\n *\n * } catch (error) {\n * console.log(error);\n * }\n * }\n *\n * // handleConfirmSignUp.ts\n * async function handleConfirmSignUp(username:string, confirmationCode:string) {\n * try {\n * const { nextStep } = await confirmSignUp({\n * username,\n * confirmationCode,\n * });\n *\n * handleSignUpStep(nextStep);\n * } catch (error) {\n * console.log(error);\n * }\n * }\n *\n * // signUpUtils.ts\n * async function handleSignUpStep( step: SignUpOutput[\"nextStep\"]) {\n * switch (step.signUpStep) {\n * case \"CONFIRM_SIGN_UP\":\n *\n * // Redirect end-user to confirm-sign up screen.\n *\n * case \"COMPLETE_AUTO_SIGN_IN\":\n *\t const codeDeliveryDetails = step.codeDeliveryDetails;\n * if (codeDeliveryDetails) {\n * // Redirect user to confirm-sign-up with link screen.\n * }\n * const signInOutput = await autoSignIn();\n * // handle sign-in steps\n * }\n *\n * ```\n */\n// TODO(Eslint): can this be refactored not using `let` on exported member?\n// eslint-disable-next-line import/no-mutable-exports\nexports.autoSignIn = initialAutoSignIn;\n/**\n * Sets the context of autoSignIn at run time.\n * @internal\n */\nfunction setAutoSignIn(callback) {\n exports.autoSignIn = callback;\n}\nexports.setAutoSignIn = setAutoSignIn;\n/**\n * Resets the context\n *\n * @internal\n */\nfunction resetAutoSignIn() {\n exports.autoSignIn = initialAutoSignIn;\n}\nexports.resetAutoSignIn = resetAutoSignIn;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC;AAC9E,MAAM,WAAW,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AACzD,MAAM,WAAW,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AACzD,MAAM,iBAAiB,GAAG,YAAY;AACtC,IAAI,MAAM,IAAI,WAAW,CAAC,SAAS,CAAC;AACpC,QAAQ,IAAI,EAAE,WAAW,CAAC,sBAAsB;AAChD,QAAQ,OAAO,EAAE,uEAAuE;AACxF,QAAQ,kBAAkB,EAAE,oFAAoF;AAChH,KAAK,CAAC,CAAC;AACP,CAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,CAAC,UAAU,GAAG,iBAAiB,CAAC;AACvC;AACA;AACA;AACA;AACA,SAAS,aAAa,CAAC,QAAQ,EAAE;AACjC,IAAI,OAAO,CAAC,UAAU,GAAG,QAAQ,CAAC;AAClC,CAAC;AACD,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC;AACtC;AACA;AACA;AACA;AACA;AACA,SAAS,eAAe,GAAG;
|
|
1
|
+
{"version":3,"file":"autoSignIn.js","sources":["../../../../../src/providers/cognito/apis/autoSignIn.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.resetAutoSignIn = exports.setAutoSignIn = exports.autoSignIn = void 0;\nconst store_1 = require(\"../../../client/utils/store\");\nconst AuthError_1 = require(\"../../../errors/AuthError\");\nconst constants_1 = require(\"../../../errors/constants\");\nconst initialAutoSignIn = async () => {\n throw new AuthError_1.AuthError({\n name: constants_1.AUTO_SIGN_IN_EXCEPTION,\n message: 'The autoSignIn flow has not started, or has been cancelled/completed.',\n recoverySuggestion: 'Please try to use the signIn API or log out before starting a new autoSignIn flow.',\n });\n};\n/**\n * Signs a user in automatically after finishing the sign-up process.\n *\n * This API will automatically sign a user in if the autoSignIn flow has been completed in the following cases:\n * - User confirmed their account with a verification code sent to their phone or email (default option).\n * - User confirmed their account with a verification link sent to their phone or email. In order to\n * enable this option you need to go to the Amazon Cognito [console](https://aws.amazon.com/pm/cognito),\n * look for your userpool, then go to the `Messaging` tab and enable `link` mode inside the `Verification message` option.\n * Finally you need to define the `signUpVerificationMethod` in your `Auth` config.\n *\n * @example\n * ```typescript\n * Amplify.configure({\n * Auth: {\n * Cognito: {\n * ...cognitoConfig,\n * signUpVerificationMethod: \"link\" // the default value is \"code\"\n * }\n *\t}});\n * ```\n *\n * @throws AutoSignInException - Thrown when the autoSignIn flow has not started, or has been cancelled/completed.\n * @returns The signInOutput.\n *\n * @example\n * ```typescript\n * // handleSignUp.ts\n * async function handleSignUp(\n * username:string,\n * password:string\n * ){\n * try {\n * const { nextStep } = await signUp({\n * username,\n * password,\n * options: {\n * userAttributes:{ email:'email@email.com'},\n * autoSignIn: true // This enables the auto sign-in flow.\n * },\n * });\n *\n * handleSignUpStep(nextStep);\n *\n * } catch (error) {\n * console.log(error);\n * }\n * }\n *\n * // handleConfirmSignUp.ts\n * async function handleConfirmSignUp(username:string, confirmationCode:string) {\n * try {\n * const { nextStep } = await confirmSignUp({\n * username,\n * confirmationCode,\n * });\n *\n * handleSignUpStep(nextStep);\n * } catch (error) {\n * console.log(error);\n * }\n * }\n *\n * // signUpUtils.ts\n * async function handleSignUpStep( step: SignUpOutput[\"nextStep\"]) {\n * switch (step.signUpStep) {\n * case \"CONFIRM_SIGN_UP\":\n *\n * // Redirect end-user to confirm-sign up screen.\n *\n * case \"COMPLETE_AUTO_SIGN_IN\":\n *\t const codeDeliveryDetails = step.codeDeliveryDetails;\n * if (codeDeliveryDetails) {\n * // Redirect user to confirm-sign-up with link screen.\n * }\n * const signInOutput = await autoSignIn();\n * // handle sign-in steps\n * }\n *\n * ```\n */\n// TODO(Eslint): can this be refactored not using `let` on exported member?\n// eslint-disable-next-line import/no-mutable-exports\nexports.autoSignIn = initialAutoSignIn;\n/**\n * Sets the context of autoSignIn at run time.\n * @internal\n */\nfunction setAutoSignIn(callback) {\n exports.autoSignIn = callback;\n}\nexports.setAutoSignIn = setAutoSignIn;\n/**\n * Resets the context\n *\n * @internal\n */\nfunction resetAutoSignIn(resetCallback = true) {\n if (resetCallback) {\n exports.autoSignIn = initialAutoSignIn;\n }\n store_1.autoSignInStore.dispatch({ type: 'RESET' });\n}\nexports.resetAutoSignIn = resetAutoSignIn;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC;AAC9E,MAAM,OAAO,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AACvD,MAAM,WA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eAAe;;"}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.confirmSignIn = void 0;
|
|
7
7
|
const core_1 = require("@aws-amplify/core");
|
|
8
8
|
const utils_1 = require("@aws-amplify/core/internals/utils");
|
|
9
|
-
const
|
|
9
|
+
const store_1 = require("../../../client/utils/store");
|
|
10
10
|
const AuthError_1 = require("../../../errors/AuthError");
|
|
11
11
|
const signInHelpers_1 = require("../utils/signInHelpers");
|
|
12
12
|
const assertServiceError_1 = require("../../../errors/utils/assertServiceError");
|
|
@@ -33,7 +33,7 @@ const dispatchSignedInHubEvent_1 = require("../utils/dispatchSignedInHubEvent");
|
|
|
33
33
|
*/
|
|
34
34
|
async function confirmSignIn(input) {
|
|
35
35
|
const { challengeResponse, options } = input;
|
|
36
|
-
const { username, challengeName, signInSession, signInDetails } =
|
|
36
|
+
const { username, challengeName, signInSession, signInDetails } = store_1.signInStore.getState();
|
|
37
37
|
const authConfig = core_1.Amplify.getConfig().Auth?.Cognito;
|
|
38
38
|
(0, utils_1.assertTokenProviderConfig)(authConfig);
|
|
39
39
|
const clientMetaData = options?.clientMetadata;
|
|
@@ -56,14 +56,14 @@ async function confirmSignIn(input) {
|
|
|
56
56
|
try {
|
|
57
57
|
const { Session, ChallengeName: handledChallengeName, AuthenticationResult, ChallengeParameters: handledChallengeParameters, } = await (0, signInHelpers_1.handleChallengeName)(username, challengeName, signInSession, challengeResponse, authConfig, tokenProvider_1.tokenOrchestrator, clientMetaData, options);
|
|
58
58
|
// sets up local state used during the sign-in process
|
|
59
|
-
(0,
|
|
59
|
+
(0, store_1.setActiveSignInState)({
|
|
60
60
|
signInSession: Session,
|
|
61
61
|
username,
|
|
62
62
|
challengeName: handledChallengeName,
|
|
63
63
|
signInDetails,
|
|
64
64
|
});
|
|
65
65
|
if (AuthenticationResult) {
|
|
66
|
-
(0,
|
|
66
|
+
(0, store_1.cleanActiveSignInState)();
|
|
67
67
|
await (0, cacheTokens_1.cacheCognitoTokens)({
|
|
68
68
|
username,
|
|
69
69
|
...AuthenticationResult,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirmSignIn.js","sources":["../../../../../src/providers/cognito/apis/confirmSignIn.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.confirmSignIn = void 0;\nconst core_1 = require(\"@aws-amplify/core\");\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nconst
|
|
1
|
+
{"version":3,"file":"confirmSignIn.js","sources":["../../../../../src/providers/cognito/apis/confirmSignIn.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.confirmSignIn = void 0;\nconst core_1 = require(\"@aws-amplify/core\");\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nconst store_1 = require(\"../../../client/utils/store\");\nconst AuthError_1 = require(\"../../../errors/AuthError\");\nconst signInHelpers_1 = require(\"../utils/signInHelpers\");\nconst assertServiceError_1 = require(\"../../../errors/utils/assertServiceError\");\nconst assertValidationError_1 = require(\"../../../errors/utils/assertValidationError\");\nconst validation_1 = require(\"../../../errors/types/validation\");\nconst AuthErrorStrings_1 = require(\"../../../common/AuthErrorStrings\");\nconst cacheTokens_1 = require(\"../tokenProvider/cacheTokens\");\nconst tokenProvider_1 = require(\"../tokenProvider\");\nconst dispatchSignedInHubEvent_1 = require(\"../utils/dispatchSignedInHubEvent\");\n/**\n * Continues or completes the sign in process when required by the initial call to `signIn`.\n *\n * @param input - The ConfirmSignInInput object\n * @returns ConfirmSignInOutput\n * @throws -{@link VerifySoftwareTokenException }:\n * Thrown due to an invalid MFA token.\n * @throws -{@link RespondToAuthChallengeException }:\n * Thrown due to an invalid auth challenge response.\n * @throws -{@link AssociateSoftwareTokenException}:\n * Thrown due to a service error during the MFA setup process.\n * @throws -{@link AuthValidationErrorCode }:\n * Thrown when `challengeResponse` is not defined.\n * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.\n */\nasync function confirmSignIn(input) {\n const { challengeResponse, options } = input;\n const { username, challengeName, signInSession, signInDetails } = store_1.signInStore.getState();\n const authConfig = core_1.Amplify.getConfig().Auth?.Cognito;\n (0, utils_1.assertTokenProviderConfig)(authConfig);\n const clientMetaData = options?.clientMetadata;\n (0, assertValidationError_1.assertValidationError)(!!challengeResponse, validation_1.AuthValidationErrorCode.EmptyChallengeResponse);\n if (!username || !challengeName || !signInSession)\n // TODO: remove this error message for production apps\n throw new AuthError_1.AuthError({\n name: AuthErrorStrings_1.AuthErrorCodes.SignInException,\n message: `\n\t\t\tAn error occurred during the sign in process.\n\n\t\t\tThis most likely occurred due to:\n\t\t\t1. signIn was not called before confirmSignIn.\n\t\t\t2. signIn threw an exception.\n\t\t\t3. page was refreshed during the sign in flow.\n\t\t\t`,\n recoverySuggestion: 'Make sure a successful call to signIn is made before calling confirmSignIn' +\n 'and that the page is not refreshed until the sign in process is done.',\n });\n try {\n const { Session, ChallengeName: handledChallengeName, AuthenticationResult, ChallengeParameters: handledChallengeParameters, } = await (0, signInHelpers_1.handleChallengeName)(username, challengeName, signInSession, challengeResponse, authConfig, tokenProvider_1.tokenOrchestrator, clientMetaData, options);\n // sets up local state used during the sign-in process\n (0, store_1.setActiveSignInState)({\n signInSession: Session,\n username,\n challengeName: handledChallengeName,\n signInDetails,\n });\n if (AuthenticationResult) {\n (0, store_1.cleanActiveSignInState)();\n await (0, cacheTokens_1.cacheCognitoTokens)({\n username,\n ...AuthenticationResult,\n NewDeviceMetadata: await (0, signInHelpers_1.getNewDeviceMetadata)({\n userPoolId: authConfig.userPoolId,\n userPoolEndpoint: authConfig.userPoolEndpoint,\n newDeviceMetadata: AuthenticationResult.NewDeviceMetadata,\n accessToken: AuthenticationResult.AccessToken,\n }),\n signInDetails,\n });\n await (0, dispatchSignedInHubEvent_1.dispatchSignedInHubEvent)();\n return {\n isSignedIn: true,\n nextStep: { signInStep: 'DONE' },\n };\n }\n return (0, signInHelpers_1.getSignInResult)({\n challengeName: handledChallengeName,\n challengeParameters: handledChallengeParameters,\n });\n }\n catch (error) {\n (0, assertServiceError_1.assertServiceError)(error);\n const result = (0, signInHelpers_1.getSignInResultFromError)(error.name);\n if (result)\n return result;\n throw error;\n }\n}\nexports.confirmSignIn = confirmSignIn;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AAC/B,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AACvD,MAAM,WAAW,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AACzD,MAAM,eAAe,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAC1D,MAAM,oBAAoB,GAAG,OAAO,CAAC,0CAA0C,CAAC,CAAC;AACjF,MAAM,uBAAuB,GAAG,OAAO,CAAC,6CAA6C,CAAC,CAAC;AACvF,MAAM,YAAY,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC;AACjE,MAAM,kBAAkB,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC;AACvE,MAAM,aAAa,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC9D,MAAM,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AACpD,MAAM,0BAA0B,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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I,eAAe,CAAC,wBAAwB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;AACjF,QAAQ,IAAI,MAAM;AAClB,YAAY,OAAO,MAAM,CAAC;AAC1B,QAAQ,MAAM,KAAK,CAAC;AACpB,KAAK;AACL,CAAC;AACD,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
|
|
@@ -9,11 +9,12 @@ const utils_1 = require("@aws-amplify/core/internals/utils");
|
|
|
9
9
|
const assertValidationError_1 = require("../../../errors/utils/assertValidationError");
|
|
10
10
|
const validation_1 = require("../../../errors/types/validation");
|
|
11
11
|
const parsers_1 = require("../../../foundation/parsers");
|
|
12
|
-
const signUpHelpers_1 = require("../utils/signUpHelpers");
|
|
13
12
|
const utils_2 = require("../../../utils");
|
|
14
13
|
const userContextData_1 = require("../utils/userContextData");
|
|
15
14
|
const cognitoIdentityProvider_1 = require("../../../foundation/factories/serviceClients/cognitoIdentityProvider");
|
|
16
15
|
const factories_1 = require("../factories");
|
|
16
|
+
const store_1 = require("../../../client/utils/store");
|
|
17
|
+
const autoSignIn_1 = require("./autoSignIn");
|
|
17
18
|
/**
|
|
18
19
|
* Confirms a new user account.
|
|
19
20
|
*
|
|
@@ -43,7 +44,7 @@ async function confirmSignUp(input) {
|
|
|
43
44
|
endpointOverride: userPoolEndpoint,
|
|
44
45
|
}),
|
|
45
46
|
});
|
|
46
|
-
await confirmSignUpClient({
|
|
47
|
+
const { Session: session } = await confirmSignUpClient({
|
|
47
48
|
region: (0, parsers_1.getRegionFromUserPoolId)(authConfig.userPoolId),
|
|
48
49
|
userAgentValue: (0, utils_2.getAuthUserAgentValue)(utils_1.AuthAction.ConfirmSignUp),
|
|
49
50
|
}, {
|
|
@@ -62,11 +63,14 @@ async function confirmSignUp(input) {
|
|
|
62
63
|
signUpStep: 'DONE',
|
|
63
64
|
},
|
|
64
65
|
};
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
const autoSignInStoreState = store_1.autoSignInStore.getState();
|
|
67
|
+
if (!autoSignInStoreState.active ||
|
|
68
|
+
autoSignInStoreState.username !== username) {
|
|
67
69
|
resolve(signUpOut);
|
|
70
|
+
(0, autoSignIn_1.resetAutoSignIn)();
|
|
68
71
|
return;
|
|
69
72
|
}
|
|
73
|
+
store_1.autoSignInStore.dispatch({ type: 'SET_SESSION', value: session });
|
|
70
74
|
const stopListener = utils_1.HubInternal.listen('auth-internal', ({ payload }) => {
|
|
71
75
|
switch (payload.event) {
|
|
72
76
|
case 'autoSignIn':
|
|
@@ -76,7 +80,6 @@ async function confirmSignUp(input) {
|
|
|
76
80
|
signUpStep: 'COMPLETE_AUTO_SIGN_IN',
|
|
77
81
|
},
|
|
78
82
|
});
|
|
79
|
-
(0, signUpHelpers_1.setAutoSignInStarted)(false);
|
|
80
83
|
stopListener();
|
|
81
84
|
}
|
|
82
85
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirmSignUp.js","sources":["../../../../../src/providers/cognito/apis/confirmSignUp.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.confirmSignUp = void 0;\nconst core_1 = require(\"@aws-amplify/core\");\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nconst assertValidationError_1 = require(\"../../../errors/utils/assertValidationError\");\nconst validation_1 = require(\"../../../errors/types/validation\");\nconst parsers_1 = require(\"../../../foundation/parsers\");\nconst
|
|
1
|
+
{"version":3,"file":"confirmSignUp.js","sources":["../../../../../src/providers/cognito/apis/confirmSignUp.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.confirmSignUp = void 0;\nconst core_1 = require(\"@aws-amplify/core\");\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nconst assertValidationError_1 = require(\"../../../errors/utils/assertValidationError\");\nconst validation_1 = require(\"../../../errors/types/validation\");\nconst parsers_1 = require(\"../../../foundation/parsers\");\nconst utils_2 = require(\"../../../utils\");\nconst userContextData_1 = require(\"../utils/userContextData\");\nconst cognitoIdentityProvider_1 = require(\"../../../foundation/factories/serviceClients/cognitoIdentityProvider\");\nconst factories_1 = require(\"../factories\");\nconst store_1 = require(\"../../../client/utils/store\");\nconst autoSignIn_1 = require(\"./autoSignIn\");\n/**\n * Confirms a new user account.\n *\n * @param input - The ConfirmSignUpInput object.\n * @returns ConfirmSignUpOutput\n * @throws -{@link ConfirmSignUpException }\n * Thrown due to an invalid confirmation code.\n * @throws -{@link AuthValidationErrorCode }\n * Thrown due to an empty confirmation code\n * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.\n */\nasync function confirmSignUp(input) {\n const { username, confirmationCode, options } = input;\n const authConfig = core_1.Amplify.getConfig().Auth?.Cognito;\n (0, utils_1.assertTokenProviderConfig)(authConfig);\n const { userPoolId, userPoolClientId, userPoolEndpoint } = authConfig;\n const clientMetadata = options?.clientMetadata;\n (0, assertValidationError_1.assertValidationError)(!!username, validation_1.AuthValidationErrorCode.EmptyConfirmSignUpUsername);\n (0, assertValidationError_1.assertValidationError)(!!confirmationCode, validation_1.AuthValidationErrorCode.EmptyConfirmSignUpCode);\n const UserContextData = (0, userContextData_1.getUserContextData)({\n username,\n userPoolId,\n userPoolClientId,\n });\n const confirmSignUpClient = (0, cognitoIdentityProvider_1.createConfirmSignUpClient)({\n endpointResolver: (0, factories_1.createCognitoUserPoolEndpointResolver)({\n endpointOverride: userPoolEndpoint,\n }),\n });\n const { Session: session } = await confirmSignUpClient({\n region: (0, parsers_1.getRegionFromUserPoolId)(authConfig.userPoolId),\n userAgentValue: (0, utils_2.getAuthUserAgentValue)(utils_1.AuthAction.ConfirmSignUp),\n }, {\n Username: username,\n ConfirmationCode: confirmationCode,\n ClientMetadata: clientMetadata,\n ForceAliasCreation: options?.forceAliasCreation,\n ClientId: authConfig.userPoolClientId,\n UserContextData,\n });\n return new Promise((resolve, reject) => {\n try {\n const signUpOut = {\n isSignUpComplete: true,\n nextStep: {\n signUpStep: 'DONE',\n },\n };\n const autoSignInStoreState = store_1.autoSignInStore.getState();\n if (!autoSignInStoreState.active ||\n autoSignInStoreState.username !== username) {\n resolve(signUpOut);\n (0, autoSignIn_1.resetAutoSignIn)();\n return;\n }\n store_1.autoSignInStore.dispatch({ type: 'SET_SESSION', value: session });\n const stopListener = utils_1.HubInternal.listen('auth-internal', ({ payload }) => {\n switch (payload.event) {\n case 'autoSignIn':\n resolve({\n isSignUpComplete: true,\n nextStep: {\n signUpStep: 'COMPLETE_AUTO_SIGN_IN',\n },\n });\n stopListener();\n }\n });\n utils_1.HubInternal.dispatch('auth-internal', {\n event: 'confirmSignUp',\n data: signUpOut,\n });\n }\n catch (error) {\n reject(error);\n }\n });\n}\nexports.confirmSignUp = confirmSignUp;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AAC/B,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D,MAAM,uBAAuB,GAAG,OAAO,CAAC,6CAA6C,CAAC,CAAC;AACvF,MAAM,YAAY,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC;AACjE,MAAM,SAAS,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AACzD,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C,MAAM,iBAAiB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAC9D,MAAM,yBAAyB,GAAG,OAAO,CAAC,sEAAsE,CAAC,CAAC;AAClH,MAAM,WAAW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AAC,eAAe,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK;AAC9F,gBAAgB,QAAQ,OAAO,CAAC,KAAK;AACrC,oBAAoB,KAAK,YAAY;AACrC,wBAAwB,OAAO,CAAC;AAChC,4BAA4B,gBAAgB,EAAE,IAAI;AAClD,4BAA4B,QAAQ,EAAE;AACtC,gCAAgC,UAAU,EAAE,uBAAuB;AACnE,6BAA6B;AAC7B,yBAAyB,CAAC,CAAC;AAC3B,wBAAwB,YAAY,EAAE,CAAC;AACvC,iBAAiB;AACjB,aAAa,CAAC,CAAC;AACf,YAAY,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,eAAe,EAAE;AAC1D,gBAAgB,KAAK,EAAE,eAAe;AACtC,gBAAgB,IAAI,EAAE,SAAS;AAC/B,aAAa,CAAC,CAAC;AACf,SAAS;AACT,QAAQ,OAAO,KAAK,EAAE;AACtB,YAAY,MAAM,CAAC,KAAK,CAAC,CAAC;AAC1B,SAAS;AACT,KAAK,CAAC,CAAC;AACP,CAAC;AACD,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
|
|
@@ -9,6 +9,8 @@ const signInWithCustomAuth_1 = require("./signInWithCustomAuth");
|
|
|
9
9
|
const signInWithCustomSRPAuth_1 = require("./signInWithCustomSRPAuth");
|
|
10
10
|
const signInWithSRP_1 = require("./signInWithSRP");
|
|
11
11
|
const signInWithUserPassword_1 = require("./signInWithUserPassword");
|
|
12
|
+
const signInWithUserAuth_1 = require("./signInWithUserAuth");
|
|
13
|
+
const autoSignIn_1 = require("./autoSignIn");
|
|
12
14
|
/**
|
|
13
15
|
* Signs a user in
|
|
14
16
|
*
|
|
@@ -21,6 +23,11 @@ const signInWithUserPassword_1 = require("./signInWithUserPassword");
|
|
|
21
23
|
* @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
|
|
22
24
|
*/
|
|
23
25
|
async function signIn(input) {
|
|
26
|
+
// Here we want to reset the store but not reassign the callback.
|
|
27
|
+
// The callback is reset when the underlying promise resolves or rejects.
|
|
28
|
+
// With the advent of session based sign in, this guarantees that the signIn API initiates a new auth flow,
|
|
29
|
+
// regardless of whether it is called for a user currently engaged in an active auto sign in session.
|
|
30
|
+
(0, autoSignIn_1.resetAutoSignIn)(false);
|
|
24
31
|
const authFlowType = input.options?.authFlowType;
|
|
25
32
|
await (0, signInHelpers_1.assertUserNotAuthenticated)();
|
|
26
33
|
switch (authFlowType) {
|
|
@@ -32,6 +39,8 @@ async function signIn(input) {
|
|
|
32
39
|
return (0, signInWithCustomAuth_1.signInWithCustomAuth)(input);
|
|
33
40
|
case 'CUSTOM_WITH_SRP':
|
|
34
41
|
return (0, signInWithCustomSRPAuth_1.signInWithCustomSRPAuth)(input);
|
|
42
|
+
case 'USER_AUTH':
|
|
43
|
+
return (0, signInWithUserAuth_1.signInWithUserAuth)(input);
|
|
35
44
|
default:
|
|
36
45
|
return (0, signInWithSRP_1.signInWithSRP)(input);
|
|
37
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signIn.js","sources":["../../../../../src/providers/cognito/apis/signIn.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.signIn = void 0;\nconst signInHelpers_1 = require(\"../utils/signInHelpers\");\nconst signInWithCustomAuth_1 = require(\"./signInWithCustomAuth\");\nconst signInWithCustomSRPAuth_1 = require(\"./signInWithCustomSRPAuth\");\nconst signInWithSRP_1 = require(\"./signInWithSRP\");\nconst signInWithUserPassword_1 = require(\"./signInWithUserPassword\");\n/**\n * Signs a user in\n *\n * @param input - The SignInInput object\n * @returns SignInOutput\n * @throws service: {@link InitiateAuthException }, {@link RespondToAuthChallengeException }\n * - Cognito service errors thrown during the sign-in process.\n * @throws validation: {@link AuthValidationErrorCode } - Validation errors thrown when either username or password\n * are not defined.\n * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.\n */\nasync function signIn(input) {\n const authFlowType = input.options?.authFlowType;\n await (0, signInHelpers_1.assertUserNotAuthenticated)();\n switch (authFlowType) {\n case 'USER_SRP_AUTH':\n return (0, signInWithSRP_1.signInWithSRP)(input);\n case 'USER_PASSWORD_AUTH':\n return (0, signInWithUserPassword_1.signInWithUserPassword)(input);\n case 'CUSTOM_WITHOUT_SRP':\n return (0, signInWithCustomAuth_1.signInWithCustomAuth)(input);\n case 'CUSTOM_WITH_SRP':\n return (0, signInWithCustomSRPAuth_1.signInWithCustomSRPAuth)(input);\n default:\n return (0, signInWithSRP_1.signInWithSRP)(input);\n }\n}\nexports.signIn = signIn;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;AACxB,MAAM,eAAe,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAC1D,MAAM,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AACjE,MAAM,yBAAyB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AACvE,MAAM,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACnD,MAAM,wBAAwB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM,CAAC,KAAK,EAAE;AAC7B,IAAI,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,EAAE,YAAY,CAAC;AACrD,IAAI,MAAM,IAAI,eAAe,CAAC,0BAA0B,GAAG,CAAC;AAC5D,IAAI,QAAQ,YAAY;AACxB,QAAQ,KAAK,eAAe;AAC5B,YAAY,OAAO,IAAI,eAAe,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AAC7D,QAAQ,KAAK,oBAAoB;AACjC,YAAY,OAAO,IAAI,wBAAwB,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;AAC/E,QAAQ,KAAK,oBAAoB;AACjC,YAAY,OAAO,IAAI,sBAAsB,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAC3E,QAAQ,KAAK,iBAAiB;AAC9B,YAAY,OAAO,IAAI,yBAAyB,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;AACjF,QAAQ;AACR,YAAY,OAAO,IAAI,eAAe,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AAC7D,KAAK;AACL,CAAC;AACD,OAAO,CAAC,MAAM,GAAG,MAAM;;"}
|
|
1
|
+
{"version":3,"file":"signIn.js","sources":["../../../../../src/providers/cognito/apis/signIn.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.signIn = void 0;\nconst signInHelpers_1 = require(\"../utils/signInHelpers\");\nconst signInWithCustomAuth_1 = require(\"./signInWithCustomAuth\");\nconst signInWithCustomSRPAuth_1 = require(\"./signInWithCustomSRPAuth\");\nconst signInWithSRP_1 = require(\"./signInWithSRP\");\nconst signInWithUserPassword_1 = require(\"./signInWithUserPassword\");\nconst signInWithUserAuth_1 = require(\"./signInWithUserAuth\");\nconst autoSignIn_1 = require(\"./autoSignIn\");\n/**\n * Signs a user in\n *\n * @param input - The SignInInput object\n * @returns SignInOutput\n * @throws service: {@link InitiateAuthException }, {@link RespondToAuthChallengeException }\n * - Cognito service errors thrown during the sign-in process.\n * @throws validation: {@link AuthValidationErrorCode } - Validation errors thrown when either username or password\n * are not defined.\n * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.\n */\nasync function signIn(input) {\n // Here we want to reset the store but not reassign the callback.\n // The callback is reset when the underlying promise resolves or rejects.\n // With the advent of session based sign in, this guarantees that the signIn API initiates a new auth flow,\n // regardless of whether it is called for a user currently engaged in an active auto sign in session.\n (0, autoSignIn_1.resetAutoSignIn)(false);\n const authFlowType = input.options?.authFlowType;\n await (0, signInHelpers_1.assertUserNotAuthenticated)();\n switch (authFlowType) {\n case 'USER_SRP_AUTH':\n return (0, signInWithSRP_1.signInWithSRP)(input);\n case 'USER_PASSWORD_AUTH':\n return (0, signInWithUserPassword_1.signInWithUserPassword)(input);\n case 'CUSTOM_WITHOUT_SRP':\n return (0, signInWithCustomAuth_1.signInWithCustomAuth)(input);\n case 'CUSTOM_WITH_SRP':\n return (0, signInWithCustomSRPAuth_1.signInWithCustomSRPAuth)(input);\n case 'USER_AUTH':\n return (0, signInWithUserAuth_1.signInWithUserAuth)(input);\n default:\n return (0, signInWithSRP_1.signInWithSRP)(input);\n }\n}\nexports.signIn = signIn;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;AACxB,MAAM,eAAe,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAC1D,MAAM,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AACjE,MAAM,yBAAyB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AACvE,MAAM,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACnD,MAAM,wBAAwB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;AACrE,MAAM,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAC7D,MAAM,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM,CAAC,KAAK,EAAE;AAC7B;AACA;AACA;AACA;AACA,IAAI,IAAI,YAAY,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;AAC7C,IAAI,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,EAAE,YAAY,CAAC;AACrD,IAAI,MAAM,IAAI,eAAe,CAAC,0BAA0B,GAAG,CAAC;AAC5D,IAAI,QAAQ,YAAY;AACxB,QAAQ,KAAK,eAAe;AAC5B,YAAY,OAAO,IAAI,eAAe,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AAC7D,QAAQ,KAAK,oBAAoB;AACjC,YAAY,OAAO,IAAI,wBAAwB,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;AAC/E,QAAQ,KAAK,oBAAoB;AACjC,YAAY,OAAO,IAAI,sBAAsB,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAC3E,QAAQ,KAAK,iBAAiB;AAC9B,YAAY,OAAO,IAAI,yBAAyB,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;AACjF,QAAQ,KAAK,WAAW;AACxB,YAAY,OAAO,IAAI,oBAAoB,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACvE,QAAQ;AACR,YAAY,OAAO,IAAI,eAAe,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AAC7D,KAAK;AACL,CAAC;AACD,OAAO,CAAC,MAAM,GAAG,MAAM;;"}
|
|
@@ -10,7 +10,7 @@ const validation_1 = require("../../../errors/types/validation");
|
|
|
10
10
|
const assertValidationError_1 = require("../../../errors/utils/assertValidationError");
|
|
11
11
|
const assertServiceError_1 = require("../../../errors/utils/assertServiceError");
|
|
12
12
|
const signInHelpers_1 = require("../utils/signInHelpers");
|
|
13
|
-
const
|
|
13
|
+
const store_1 = require("../../../client/utils/store");
|
|
14
14
|
const cacheTokens_1 = require("../tokenProvider/cacheTokens");
|
|
15
15
|
const tokenProvider_1 = require("../tokenProvider");
|
|
16
16
|
const dispatchSignedInHubEvent_1 = require("../utils/dispatchSignedInHubEvent");
|
|
@@ -39,14 +39,14 @@ async function signInWithCustomAuth(input) {
|
|
|
39
39
|
const { ChallengeName: retriedChallengeName, ChallengeParameters: retiredChallengeParameters, AuthenticationResult, Session, } = await (0, signInHelpers_1.retryOnResourceNotFoundException)(signInHelpers_1.handleCustomAuthFlowWithoutSRP, [username, metadata, authConfig, tokenProvider_1.tokenOrchestrator], username, tokenProvider_1.tokenOrchestrator);
|
|
40
40
|
const activeUsername = (0, signInHelpers_1.getActiveSignInUsername)(username);
|
|
41
41
|
// sets up local state used during the sign-in process
|
|
42
|
-
(0,
|
|
42
|
+
(0, store_1.setActiveSignInState)({
|
|
43
43
|
signInSession: Session,
|
|
44
44
|
username: activeUsername,
|
|
45
45
|
challengeName: retriedChallengeName,
|
|
46
46
|
signInDetails,
|
|
47
47
|
});
|
|
48
48
|
if (AuthenticationResult) {
|
|
49
|
-
(0,
|
|
49
|
+
(0, store_1.cleanActiveSignInState)();
|
|
50
50
|
await (0, cacheTokens_1.cacheCognitoTokens)({
|
|
51
51
|
username: activeUsername,
|
|
52
52
|
...AuthenticationResult,
|
|
@@ -70,7 +70,7 @@ async function signInWithCustomAuth(input) {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
catch (error) {
|
|
73
|
-
(0,
|
|
73
|
+
(0, store_1.cleanActiveSignInState)();
|
|
74
74
|
(0, assertServiceError_1.assertServiceError)(error);
|
|
75
75
|
const result = (0, signInHelpers_1.getSignInResultFromError)(error.name);
|
|
76
76
|
if (result)
|