@aws-amplify/ui 6.12.1 → 6.14.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/esm/helpers/authenticator/facade.mjs +9 -2
- package/dist/esm/helpers/authenticator/formFields/defaults.mjs +34 -8
- package/dist/esm/helpers/authenticator/getRoute.mjs +8 -0
- package/dist/esm/helpers/authenticator/textUtil.mjs +34 -0
- package/dist/esm/i18n/dictionaries/authenticator/defaultTexts.mjs +27 -0
- package/dist/esm/i18n/dictionaries/authenticator/es.mjs +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/fr.mjs +1 -1
- package/dist/esm/machines/authenticator/actions.mjs +63 -4
- package/dist/esm/machines/authenticator/actors/signIn.mjs +199 -49
- package/dist/esm/machines/authenticator/actors/signUp.mjs +81 -27
- package/dist/esm/machines/authenticator/defaultServices.mjs +37 -0
- package/dist/esm/machines/authenticator/guards.mjs +49 -1
- package/dist/esm/machines/authenticator/index.mjs +29 -15
- package/dist/esm/machines/authenticator/utils.mjs +65 -6
- package/dist/index.js +632 -111
- package/dist/styles/authenticator.css +17 -0
- package/dist/styles/authenticator.layer.css +17 -0
- package/dist/styles.css +17 -0
- package/dist/styles.layer.css +17 -0
- package/dist/types/helpers/authenticator/facade.d.ts +6 -2
- package/dist/types/helpers/authenticator/textUtil.d.ts +24 -1
- package/dist/types/i18n/dictionaries/authenticator/defaultTexts.d.ts +27 -0
- package/dist/types/i18n/dictionaries/index.d.ts +27 -0
- package/dist/types/i18n/translations.d.ts +27 -0
- package/dist/types/machines/authenticator/defaultServices.d.ts +105 -0
- package/dist/types/machines/authenticator/types.d.ts +26 -2
- package/dist/types/machines/authenticator/utils.d.ts +14 -2
- package/package.json +5 -4
|
@@ -69,4 +69,21 @@
|
|
|
69
69
|
.amplify-authenticator__federated-button {
|
|
70
70
|
font-weight: normal;
|
|
71
71
|
gap: var(--amplify-space-medium);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-success-icon {
|
|
75
|
+
font-size: var(--amplify-font-sizes-xxxl);
|
|
76
|
+
color: var(--amplify-colors-green-60, #34a853);
|
|
77
|
+
}
|
|
78
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-credential-item {
|
|
79
|
+
padding: var(--amplify-space-medium);
|
|
80
|
+
background-color: var(--amplify-colors-background-secondary);
|
|
81
|
+
border-radius: var(--amplify-radii-small);
|
|
82
|
+
}
|
|
83
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-error {
|
|
84
|
+
color: var(--amplify-colors-font-error);
|
|
85
|
+
margin-top: var(--amplify-space-small);
|
|
86
|
+
}
|
|
87
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-icon {
|
|
88
|
+
font-size: var(--amplify-components-authenticator-passkey-icon-size, 12rem);
|
|
72
89
|
}
|
|
@@ -71,4 +71,21 @@
|
|
|
71
71
|
font-weight: normal;
|
|
72
72
|
gap: var(--amplify-space-medium);
|
|
73
73
|
}
|
|
74
|
+
|
|
75
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-success-icon {
|
|
76
|
+
font-size: var(--amplify-font-sizes-xxxl);
|
|
77
|
+
color: var(--amplify-colors-green-60, #34a853);
|
|
78
|
+
}
|
|
79
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-credential-item {
|
|
80
|
+
padding: var(--amplify-space-medium);
|
|
81
|
+
background-color: var(--amplify-colors-background-secondary);
|
|
82
|
+
border-radius: var(--amplify-radii-small);
|
|
83
|
+
}
|
|
84
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-error {
|
|
85
|
+
color: var(--amplify-colors-font-error);
|
|
86
|
+
margin-top: var(--amplify-space-small);
|
|
87
|
+
}
|
|
88
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-icon {
|
|
89
|
+
font-size: var(--amplify-components-authenticator-passkey-icon-size, 12rem);
|
|
90
|
+
}
|
|
74
91
|
}
|
package/dist/styles.css
CHANGED
|
@@ -3565,6 +3565,23 @@ strong.amplify-text {
|
|
|
3565
3565
|
gap: var(--amplify-space-medium);
|
|
3566
3566
|
}
|
|
3567
3567
|
|
|
3568
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-success-icon {
|
|
3569
|
+
font-size: var(--amplify-font-sizes-xxxl);
|
|
3570
|
+
color: var(--amplify-colors-green-60, #34a853);
|
|
3571
|
+
}
|
|
3572
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-credential-item {
|
|
3573
|
+
padding: var(--amplify-space-medium);
|
|
3574
|
+
background-color: var(--amplify-colors-background-secondary);
|
|
3575
|
+
border-radius: var(--amplify-radii-small);
|
|
3576
|
+
}
|
|
3577
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-error {
|
|
3578
|
+
color: var(--amplify-colors-font-error);
|
|
3579
|
+
margin-top: var(--amplify-space-small);
|
|
3580
|
+
}
|
|
3581
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-icon {
|
|
3582
|
+
font-size: var(--amplify-components-authenticator-passkey-icon-size, 12rem);
|
|
3583
|
+
}
|
|
3584
|
+
|
|
3568
3585
|
.amplify-avatar {
|
|
3569
3586
|
--avatar-color: var(--amplify-components-avatar-color);
|
|
3570
3587
|
--avatar-background-color: var(--amplify-components-avatar-background-color);
|
package/dist/styles.layer.css
CHANGED
|
@@ -3566,6 +3566,23 @@ strong.amplify-text {
|
|
|
3566
3566
|
gap: var(--amplify-space-medium);
|
|
3567
3567
|
}
|
|
3568
3568
|
|
|
3569
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-success-icon {
|
|
3570
|
+
font-size: var(--amplify-font-sizes-xxxl);
|
|
3571
|
+
color: var(--amplify-colors-green-60, #34a853);
|
|
3572
|
+
}
|
|
3573
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-credential-item {
|
|
3574
|
+
padding: var(--amplify-space-medium);
|
|
3575
|
+
background-color: var(--amplify-colors-background-secondary);
|
|
3576
|
+
border-radius: var(--amplify-radii-small);
|
|
3577
|
+
}
|
|
3578
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-error {
|
|
3579
|
+
color: var(--amplify-colors-font-error);
|
|
3580
|
+
margin-top: var(--amplify-space-small);
|
|
3581
|
+
}
|
|
3582
|
+
[data-amplify-authenticator-passkeyprompt] .amplify-authenticator__passkey-icon {
|
|
3583
|
+
font-size: var(--amplify-components-authenticator-passkey-icon-size, 12rem);
|
|
3584
|
+
}
|
|
3585
|
+
|
|
3569
3586
|
.amplify-avatar {
|
|
3570
3587
|
--avatar-color: var(--amplify-components-avatar-color);
|
|
3571
3588
|
--avatar-background-color: var(--amplify-components-avatar-background-color);
|
|
@@ -7,18 +7,22 @@ import type { Sender } from 'xstate';
|
|
|
7
7
|
import type { AuthUser } from 'aws-amplify/auth';
|
|
8
8
|
import type { FederatedProvider, LoginMechanism, SocialProvider, UnverifiedUserAttributes, ValidationError } from '../../types';
|
|
9
9
|
import type { AuthEvent, AuthEventData, AuthMachineState, AuthMFAType, ChallengeName, NavigableRoute, V5CodeDeliveryDetails } from '../../machines/authenticator/types';
|
|
10
|
-
export type AuthenticatorRoute = 'authenticated' | 'confirmResetPassword' | 'confirmSignIn' | 'confirmSignUp' | 'confirmVerifyUser' | 'forceNewPassword' | 'idle' | 'forgotPassword' | 'setup' | 'signOut' | 'selectMfaType' | 'setupEmail' | 'setupTotp' | 'signIn' | 'signUp' | 'transition' | 'verifyUser';
|
|
10
|
+
export type AuthenticatorRoute = 'authenticated' | 'confirmResetPassword' | 'confirmSignIn' | 'confirmSignUp' | 'confirmVerifyUser' | 'forceNewPassword' | 'idle' | 'forgotPassword' | 'passkeyPrompt' | 'setup' | 'signInSelectAuthFactor' | 'signOut' | 'selectMfaType' | 'setupEmail' | 'setupTotp' | 'signIn' | 'signUp' | 'transition' | 'verifyUser';
|
|
11
11
|
type AuthenticatorValidationErrors = ValidationError;
|
|
12
12
|
export type AuthStatus = 'configuring' | 'authenticated' | 'unauthenticated';
|
|
13
13
|
interface AuthenticatorServiceContextFacade {
|
|
14
14
|
allowedMfaTypes: AuthMFAType[] | undefined;
|
|
15
15
|
authStatus: AuthStatus;
|
|
16
|
+
availableAuthMethods: string[] | undefined;
|
|
16
17
|
challengeName: ChallengeName | undefined;
|
|
17
18
|
codeDeliveryDetails: V5CodeDeliveryDetails;
|
|
18
19
|
error: string;
|
|
19
20
|
hasValidationErrors: boolean;
|
|
20
21
|
isPending: boolean;
|
|
22
|
+
loginMechanism: LoginMechanism | undefined;
|
|
23
|
+
preferredChallenge: string | undefined;
|
|
21
24
|
route: AuthenticatorRoute;
|
|
25
|
+
selectedAuthMethod: string | undefined;
|
|
22
26
|
socialProviders: SocialProvider[];
|
|
23
27
|
totpSecretCode: string | null;
|
|
24
28
|
unverifiedUserAttributes: UnverifiedUserAttributes;
|
|
@@ -26,7 +30,7 @@ interface AuthenticatorServiceContextFacade {
|
|
|
26
30
|
username: string;
|
|
27
31
|
validationErrors: AuthenticatorValidationErrors;
|
|
28
32
|
}
|
|
29
|
-
type SendEventAlias = 'initializeMachine' | 'resendCode' | 'signOut' | 'submitForm' | 'updateForm' | 'updateBlur' | 'toFederatedSignIn' | 'toForgotPassword' | 'toSignIn' | 'toSignUp' | 'skipVerification';
|
|
33
|
+
type SendEventAlias = 'initializeMachine' | 'resendCode' | 'selectAuthMethod' | 'signOut' | 'submitForm' | 'toShowAuthMethods' | 'updateForm' | 'updateBlur' | 'toFederatedSignIn' | 'toForgotPassword' | 'toSignIn' | 'toSignUp' | 'skipVerification';
|
|
30
34
|
type AuthenticatorSendEventAliases = Record<SendEventAlias, (data?: AuthEventData) => void>;
|
|
31
35
|
export interface AuthenticatorServiceFacade extends AuthenticatorSendEventAliases, AuthenticatorServiceContextFacade {
|
|
32
36
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SocialProvider } from '../../types';
|
|
1
|
+
import type { LoginMechanism, SocialProvider } from '../../types';
|
|
2
2
|
import type { AuthMFAType, ChallengeName, V5CodeDeliveryDetails } from '../../machines/authenticator/types';
|
|
3
3
|
import type { AuthenticatorRoute } from './facade';
|
|
4
4
|
export declare const authenticatorTextUtil: {
|
|
@@ -8,6 +8,7 @@ export declare const authenticatorTextUtil: {
|
|
|
8
8
|
readonly getChangingText: () => string;
|
|
9
9
|
readonly getConfirmText: () => string;
|
|
10
10
|
readonly getConfirmingText: () => string;
|
|
11
|
+
readonly getContinueText: () => string;
|
|
11
12
|
readonly getCopyText: () => string;
|
|
12
13
|
readonly getHidePasswordText: () => string;
|
|
13
14
|
readonly getLoadingText: () => string;
|
|
@@ -28,6 +29,9 @@ export declare const authenticatorTextUtil: {
|
|
|
28
29
|
/** SignUp */
|
|
29
30
|
readonly getCreatingAccountText: () => string;
|
|
30
31
|
readonly getCreateAccountText: () => string;
|
|
32
|
+
readonly getCreateAccountWithEmailText: () => string;
|
|
33
|
+
readonly getCreateAccountWithPasswordText: () => string;
|
|
34
|
+
readonly getCreateAccountWithSmsText: () => string;
|
|
31
35
|
/** ConfirmSignUp */
|
|
32
36
|
readonly getDeliveryMessageText: (codeDeliveryDetails: V5CodeDeliveryDetails) => string;
|
|
33
37
|
readonly getDeliveryMethodText: (codeDeliveryDetails: V5CodeDeliveryDetails) => string;
|
|
@@ -52,6 +56,25 @@ export declare const authenticatorTextUtil: {
|
|
|
52
56
|
readonly getVerifyText: () => string;
|
|
53
57
|
readonly getVerifyContactText: () => string;
|
|
54
58
|
readonly getAccountRecoveryInfoText: () => string;
|
|
59
|
+
/** Passwordless */
|
|
60
|
+
readonly getPasskeyPromptHeadingText: () => string;
|
|
61
|
+
readonly getPasskeyPromptDescriptionText: () => string;
|
|
62
|
+
readonly getCreatePasskeyText: () => string;
|
|
63
|
+
readonly getRegisteringText: () => string;
|
|
64
|
+
readonly getContinueWithoutPasskeyText: () => string;
|
|
65
|
+
readonly getPasskeyCreatedSuccessText: () => string;
|
|
66
|
+
readonly getPasskeyRegisteredText: () => string;
|
|
67
|
+
readonly getPasskeyRegistrationFailedText: () => string;
|
|
68
|
+
readonly getPasskeyLabelText: () => string;
|
|
69
|
+
readonly getExistingPasskeysText: () => string;
|
|
70
|
+
readonly getSetupAnotherPasskeyText: () => string;
|
|
71
|
+
readonly getSignInWithPasswordText: () => string;
|
|
72
|
+
readonly getSignInWithEmailText: () => string;
|
|
73
|
+
readonly getSignInWithSmsText: () => string;
|
|
74
|
+
readonly getSignInWithPasskeyText: () => string;
|
|
75
|
+
readonly getOtherSignInOptionsText: () => string;
|
|
76
|
+
readonly getEnterUsernameFirstText: () => string;
|
|
77
|
+
readonly getUsernameLabelByLoginMechanism: (loginMechanism?: LoginMechanism) => string;
|
|
55
78
|
/** Validations */
|
|
56
79
|
readonly getInvalidEmailText: () => string;
|
|
57
80
|
readonly getRequiredFieldText: () => string;
|
|
@@ -21,7 +21,13 @@ export declare const defaultTexts: {
|
|
|
21
21
|
CONFIRM: string;
|
|
22
22
|
CONFIRMATION_CODE: string;
|
|
23
23
|
CONFIRMING: string;
|
|
24
|
+
CONTINUE: string;
|
|
25
|
+
CONTINUE_WITHOUT_PASSKEY: string;
|
|
24
26
|
CREATE_ACCOUNT: string;
|
|
27
|
+
CREATE_ACCOUNT_WITH_EMAIL_OTP: string;
|
|
28
|
+
CREATE_ACCOUNT_WITH_PASSWORD: string;
|
|
29
|
+
CREATE_ACCOUNT_WITH_SMS_OTP: string;
|
|
30
|
+
CREATE_PASSKEY: string;
|
|
25
31
|
CREATING_ACCOUNT: string;
|
|
26
32
|
EMAIL_ADDRESS: string;
|
|
27
33
|
EMAIL_OTP: string;
|
|
@@ -38,6 +44,8 @@ export declare const defaultTexts: {
|
|
|
38
44
|
ENTER_PHONE_NUMBER: string;
|
|
39
45
|
ENTER_PREFERRED_USERNAME: string;
|
|
40
46
|
ENTER_USERNAME: string;
|
|
47
|
+
ENTER_USERNAME_FIRST: string;
|
|
48
|
+
EXISTING_PASSKEYS: string;
|
|
41
49
|
FAMILY_NAME: string;
|
|
42
50
|
GIVEN_NAME: string;
|
|
43
51
|
FORGOT_PASSWORD: string;
|
|
@@ -52,16 +60,30 @@ export declare const defaultTexts: {
|
|
|
52
60
|
NICKNAME: string;
|
|
53
61
|
NEW_PASSWORD: string;
|
|
54
62
|
OR: string;
|
|
63
|
+
OTHER_SIGN_IN_OPTIONS: string;
|
|
64
|
+
PASSKEY_AUTHENTICATION_CANCELED: string;
|
|
65
|
+
PASSKEY_CREATED_SUCCESS: string;
|
|
66
|
+
PASSKEY_LABEL: string;
|
|
67
|
+
PASSKEY_PROMPT_DESCRIPTION: string;
|
|
68
|
+
PASSKEY_PROMPT_HEADING: string;
|
|
69
|
+
PASSKEY_REGISTERED: string;
|
|
70
|
+
PASSKEY_REGISTRATION_FAILED: string;
|
|
55
71
|
PASSWORD: string;
|
|
72
|
+
PASSWORDLESS_NOT_ENABLED: string;
|
|
56
73
|
PHONE_NUMBER: string;
|
|
57
74
|
PREFERRED_USERNAME: string;
|
|
58
75
|
PROFILE: string;
|
|
76
|
+
REGISTERING: string;
|
|
59
77
|
RESEND_CODE: string;
|
|
60
78
|
RESET_PASSWORD_HEADING: string;
|
|
61
79
|
RESET_PASSWORD: string;
|
|
62
80
|
SEND_CODE: string;
|
|
81
|
+
CODE_DELIVERY_FAILED: string;
|
|
82
|
+
VERIFICATION_CODE_EXPIRED: string;
|
|
83
|
+
VERIFICATION_CODE_INVALID: string;
|
|
63
84
|
SENDING: string;
|
|
64
85
|
SELECT_MFA_TYPE: string;
|
|
86
|
+
SETUP_ANOTHER_PASSKEY: string;
|
|
65
87
|
SETUP_EMAIL: string;
|
|
66
88
|
SETUP_TOTP: string;
|
|
67
89
|
SHOW_PASSWORD: string;
|
|
@@ -69,8 +91,12 @@ export declare const defaultTexts: {
|
|
|
69
91
|
SIGN_IN_TAB: string;
|
|
70
92
|
SIGN_IN_WITH_AMAZON: string;
|
|
71
93
|
SIGN_IN_WITH_APPLE: string;
|
|
94
|
+
SIGN_IN_WITH_EMAIL: string;
|
|
72
95
|
SIGN_IN_WITH_FACEBOOK: string;
|
|
73
96
|
SIGN_IN_WITH_GOOGLE: string;
|
|
97
|
+
SIGN_IN_WITH_PASSKEY: string;
|
|
98
|
+
SIGN_IN_WITH_PASSWORD: string;
|
|
99
|
+
SIGN_IN_WITH_SMS: string;
|
|
74
100
|
SIGN_IN: string;
|
|
75
101
|
SIGN_UP_BUTTON: string;
|
|
76
102
|
SIGNING_IN_BUTTON: string;
|
|
@@ -80,6 +106,7 @@ export declare const defaultTexts: {
|
|
|
80
106
|
SUBMITTING: string;
|
|
81
107
|
SOFTWARE_TOKEN_MFA: string;
|
|
82
108
|
UPPERCASE_COPY: string;
|
|
109
|
+
USERNAME: string;
|
|
83
110
|
VERIFY_CONTACT: string;
|
|
84
111
|
VERIFY_HEADING: string;
|
|
85
112
|
VERIFY: string;
|
|
@@ -1061,7 +1061,13 @@ export declare const defaultTexts: {
|
|
|
1061
1061
|
CONFIRM: string;
|
|
1062
1062
|
CONFIRMATION_CODE: string;
|
|
1063
1063
|
CONFIRMING: string;
|
|
1064
|
+
CONTINUE: string;
|
|
1065
|
+
CONTINUE_WITHOUT_PASSKEY: string;
|
|
1064
1066
|
CREATE_ACCOUNT: string;
|
|
1067
|
+
CREATE_ACCOUNT_WITH_EMAIL_OTP: string;
|
|
1068
|
+
CREATE_ACCOUNT_WITH_PASSWORD: string;
|
|
1069
|
+
CREATE_ACCOUNT_WITH_SMS_OTP: string;
|
|
1070
|
+
CREATE_PASSKEY: string;
|
|
1065
1071
|
CREATING_ACCOUNT: string;
|
|
1066
1072
|
EMAIL_ADDRESS: string;
|
|
1067
1073
|
EMAIL_OTP: string;
|
|
@@ -1078,6 +1084,8 @@ export declare const defaultTexts: {
|
|
|
1078
1084
|
ENTER_PHONE_NUMBER: string;
|
|
1079
1085
|
ENTER_PREFERRED_USERNAME: string;
|
|
1080
1086
|
ENTER_USERNAME: string;
|
|
1087
|
+
ENTER_USERNAME_FIRST: string;
|
|
1088
|
+
EXISTING_PASSKEYS: string;
|
|
1081
1089
|
FAMILY_NAME: string;
|
|
1082
1090
|
GIVEN_NAME: string;
|
|
1083
1091
|
FORGOT_PASSWORD: string;
|
|
@@ -1092,16 +1100,30 @@ export declare const defaultTexts: {
|
|
|
1092
1100
|
NICKNAME: string;
|
|
1093
1101
|
NEW_PASSWORD: string;
|
|
1094
1102
|
OR: string;
|
|
1103
|
+
OTHER_SIGN_IN_OPTIONS: string;
|
|
1104
|
+
PASSKEY_AUTHENTICATION_CANCELED: string;
|
|
1105
|
+
PASSKEY_CREATED_SUCCESS: string;
|
|
1106
|
+
PASSKEY_LABEL: string;
|
|
1107
|
+
PASSKEY_PROMPT_DESCRIPTION: string;
|
|
1108
|
+
PASSKEY_PROMPT_HEADING: string;
|
|
1109
|
+
PASSKEY_REGISTERED: string;
|
|
1110
|
+
PASSKEY_REGISTRATION_FAILED: string;
|
|
1095
1111
|
PASSWORD: string;
|
|
1112
|
+
PASSWORDLESS_NOT_ENABLED: string;
|
|
1096
1113
|
PHONE_NUMBER: string;
|
|
1097
1114
|
PREFERRED_USERNAME: string;
|
|
1098
1115
|
PROFILE: string;
|
|
1116
|
+
REGISTERING: string;
|
|
1099
1117
|
RESEND_CODE: string;
|
|
1100
1118
|
RESET_PASSWORD_HEADING: string;
|
|
1101
1119
|
RESET_PASSWORD: string;
|
|
1102
1120
|
SEND_CODE: string;
|
|
1121
|
+
CODE_DELIVERY_FAILED: string;
|
|
1122
|
+
VERIFICATION_CODE_EXPIRED: string;
|
|
1123
|
+
VERIFICATION_CODE_INVALID: string;
|
|
1103
1124
|
SENDING: string;
|
|
1104
1125
|
SELECT_MFA_TYPE: string;
|
|
1126
|
+
SETUP_ANOTHER_PASSKEY: string;
|
|
1105
1127
|
SETUP_EMAIL: string;
|
|
1106
1128
|
SETUP_TOTP: string;
|
|
1107
1129
|
SHOW_PASSWORD: string;
|
|
@@ -1109,8 +1131,12 @@ export declare const defaultTexts: {
|
|
|
1109
1131
|
SIGN_IN_TAB: string;
|
|
1110
1132
|
SIGN_IN_WITH_AMAZON: string;
|
|
1111
1133
|
SIGN_IN_WITH_APPLE: string;
|
|
1134
|
+
SIGN_IN_WITH_EMAIL: string;
|
|
1112
1135
|
SIGN_IN_WITH_FACEBOOK: string;
|
|
1113
1136
|
SIGN_IN_WITH_GOOGLE: string;
|
|
1137
|
+
SIGN_IN_WITH_PASSKEY: string;
|
|
1138
|
+
SIGN_IN_WITH_PASSWORD: string;
|
|
1139
|
+
SIGN_IN_WITH_SMS: string;
|
|
1114
1140
|
SIGN_IN: string;
|
|
1115
1141
|
SIGN_UP_BUTTON: string;
|
|
1116
1142
|
SIGNING_IN_BUTTON: string;
|
|
@@ -1120,6 +1146,7 @@ export declare const defaultTexts: {
|
|
|
1120
1146
|
SUBMITTING: string;
|
|
1121
1147
|
SOFTWARE_TOKEN_MFA: string;
|
|
1122
1148
|
UPPERCASE_COPY: string;
|
|
1149
|
+
USERNAME: string;
|
|
1123
1150
|
VERIFY_CONTACT: string;
|
|
1124
1151
|
VERIFY_HEADING: string;
|
|
1125
1152
|
VERIFY: string;
|
|
@@ -32,7 +32,13 @@ export declare const DefaultTexts: {
|
|
|
32
32
|
readonly CONFIRM: string;
|
|
33
33
|
readonly CONFIRMATION_CODE: string;
|
|
34
34
|
readonly CONFIRMING: string;
|
|
35
|
+
readonly CONTINUE: string;
|
|
36
|
+
readonly CONTINUE_WITHOUT_PASSKEY: string;
|
|
35
37
|
readonly CREATE_ACCOUNT: string;
|
|
38
|
+
readonly CREATE_ACCOUNT_WITH_EMAIL_OTP: string;
|
|
39
|
+
readonly CREATE_ACCOUNT_WITH_PASSWORD: string;
|
|
40
|
+
readonly CREATE_ACCOUNT_WITH_SMS_OTP: string;
|
|
41
|
+
readonly CREATE_PASSKEY: string;
|
|
36
42
|
readonly CREATING_ACCOUNT: string;
|
|
37
43
|
readonly EMAIL_ADDRESS: string;
|
|
38
44
|
readonly EMAIL_OTP: string;
|
|
@@ -49,6 +55,8 @@ export declare const DefaultTexts: {
|
|
|
49
55
|
readonly ENTER_PHONE_NUMBER: string;
|
|
50
56
|
readonly ENTER_PREFERRED_USERNAME: string;
|
|
51
57
|
readonly ENTER_USERNAME: string;
|
|
58
|
+
readonly ENTER_USERNAME_FIRST: string;
|
|
59
|
+
readonly EXISTING_PASSKEYS: string;
|
|
52
60
|
readonly FAMILY_NAME: string;
|
|
53
61
|
readonly GIVEN_NAME: string;
|
|
54
62
|
readonly FORGOT_PASSWORD: string;
|
|
@@ -63,16 +71,30 @@ export declare const DefaultTexts: {
|
|
|
63
71
|
readonly NICKNAME: string;
|
|
64
72
|
readonly NEW_PASSWORD: string;
|
|
65
73
|
readonly OR: string;
|
|
74
|
+
readonly OTHER_SIGN_IN_OPTIONS: string;
|
|
75
|
+
readonly PASSKEY_AUTHENTICATION_CANCELED: string;
|
|
76
|
+
readonly PASSKEY_CREATED_SUCCESS: string;
|
|
77
|
+
readonly PASSKEY_LABEL: string;
|
|
78
|
+
readonly PASSKEY_PROMPT_DESCRIPTION: string;
|
|
79
|
+
readonly PASSKEY_PROMPT_HEADING: string;
|
|
80
|
+
readonly PASSKEY_REGISTERED: string;
|
|
81
|
+
readonly PASSKEY_REGISTRATION_FAILED: string;
|
|
66
82
|
readonly PASSWORD: string;
|
|
83
|
+
readonly PASSWORDLESS_NOT_ENABLED: string;
|
|
67
84
|
readonly PHONE_NUMBER: string;
|
|
68
85
|
readonly PREFERRED_USERNAME: string;
|
|
69
86
|
readonly PROFILE: string;
|
|
87
|
+
readonly REGISTERING: string;
|
|
70
88
|
readonly RESEND_CODE: string;
|
|
71
89
|
readonly RESET_PASSWORD_HEADING: string;
|
|
72
90
|
readonly RESET_PASSWORD: string;
|
|
73
91
|
readonly SEND_CODE: string;
|
|
92
|
+
readonly CODE_DELIVERY_FAILED: string;
|
|
93
|
+
readonly VERIFICATION_CODE_EXPIRED: string;
|
|
94
|
+
readonly VERIFICATION_CODE_INVALID: string;
|
|
74
95
|
readonly SENDING: string;
|
|
75
96
|
readonly SELECT_MFA_TYPE: string;
|
|
97
|
+
readonly SETUP_ANOTHER_PASSKEY: string;
|
|
76
98
|
readonly SETUP_EMAIL: string;
|
|
77
99
|
readonly SETUP_TOTP: string;
|
|
78
100
|
readonly SHOW_PASSWORD: string;
|
|
@@ -80,8 +102,12 @@ export declare const DefaultTexts: {
|
|
|
80
102
|
readonly SIGN_IN_TAB: string;
|
|
81
103
|
readonly SIGN_IN_WITH_AMAZON: string;
|
|
82
104
|
readonly SIGN_IN_WITH_APPLE: string;
|
|
105
|
+
readonly SIGN_IN_WITH_EMAIL: string;
|
|
83
106
|
readonly SIGN_IN_WITH_FACEBOOK: string;
|
|
84
107
|
readonly SIGN_IN_WITH_GOOGLE: string;
|
|
108
|
+
readonly SIGN_IN_WITH_PASSKEY: string;
|
|
109
|
+
readonly SIGN_IN_WITH_PASSWORD: string;
|
|
110
|
+
readonly SIGN_IN_WITH_SMS: string;
|
|
85
111
|
readonly SIGN_IN: string;
|
|
86
112
|
readonly SIGN_UP_BUTTON: string;
|
|
87
113
|
readonly SIGNING_IN_BUTTON: string;
|
|
@@ -91,6 +117,7 @@ export declare const DefaultTexts: {
|
|
|
91
117
|
readonly SUBMITTING: string;
|
|
92
118
|
readonly SOFTWARE_TOKEN_MFA: string;
|
|
93
119
|
readonly UPPERCASE_COPY: string;
|
|
120
|
+
readonly USERNAME: string;
|
|
94
121
|
readonly VERIFY_CONTACT: string;
|
|
95
122
|
readonly VERIFY_HEADING: string;
|
|
96
123
|
readonly VERIFY: string;
|
|
@@ -6,7 +6,14 @@ export declare const defaultServices: {
|
|
|
6
6
|
loginMechanisms: ("email" | "phone_number" | "username")[];
|
|
7
7
|
signUpAttributes: UserAttributeKey[];
|
|
8
8
|
socialProviders: SocialProvider[];
|
|
9
|
+
passwordlessCapabilities: {
|
|
10
|
+
emailOtpEnabled: any;
|
|
11
|
+
smsOtpEnabled: any;
|
|
12
|
+
webAuthnEnabled: boolean;
|
|
13
|
+
preferredChallenge: any;
|
|
14
|
+
};
|
|
9
15
|
identityPoolId: string;
|
|
16
|
+
identityPoolEndpoint?: string;
|
|
10
17
|
allowGuestAccess?: boolean;
|
|
11
18
|
userPoolClientId?: never;
|
|
12
19
|
userPoolId?: never;
|
|
@@ -17,10 +24,17 @@ export declare const defaultServices: {
|
|
|
17
24
|
mfa?: never;
|
|
18
25
|
passwordFormat?: never;
|
|
19
26
|
groups?: never;
|
|
27
|
+
passwordless?: never;
|
|
20
28
|
} | {
|
|
21
29
|
loginMechanisms: ("email" | "phone_number" | "username")[];
|
|
22
30
|
signUpAttributes: UserAttributeKey[];
|
|
23
31
|
socialProviders: SocialProvider[];
|
|
32
|
+
passwordlessCapabilities: {
|
|
33
|
+
emailOtpEnabled: any;
|
|
34
|
+
smsOtpEnabled: any;
|
|
35
|
+
webAuthnEnabled: boolean;
|
|
36
|
+
preferredChallenge: any;
|
|
37
|
+
};
|
|
24
38
|
userPoolClientId: string;
|
|
25
39
|
userPoolId: string;
|
|
26
40
|
userPoolEndpoint?: string;
|
|
@@ -49,13 +63,30 @@ export declare const defaultServices: {
|
|
|
49
63
|
groups?: Record<string, {
|
|
50
64
|
[x: string]: number;
|
|
51
65
|
}>[];
|
|
66
|
+
passwordless?: {
|
|
67
|
+
emailOtpEnabled?: boolean;
|
|
68
|
+
smsOtpEnabled?: boolean;
|
|
69
|
+
webAuthn?: {
|
|
70
|
+
relyingPartyId?: string;
|
|
71
|
+
userVerification?: string;
|
|
72
|
+
};
|
|
73
|
+
preferredChallenge?: import("@aws-amplify/core/dist/esm/singleton/Auth/types").PreferredChallenge;
|
|
74
|
+
};
|
|
52
75
|
identityPoolId?: never;
|
|
76
|
+
identityPoolEndpoint?: never;
|
|
53
77
|
allowGuestAccess?: never;
|
|
54
78
|
} | {
|
|
55
79
|
loginMechanisms: ("email" | "phone_number" | "username")[];
|
|
56
80
|
signUpAttributes: UserAttributeKey[];
|
|
57
81
|
socialProviders: SocialProvider[];
|
|
82
|
+
passwordlessCapabilities: {
|
|
83
|
+
emailOtpEnabled: any;
|
|
84
|
+
smsOtpEnabled: any;
|
|
85
|
+
webAuthnEnabled: boolean;
|
|
86
|
+
preferredChallenge: any;
|
|
87
|
+
};
|
|
58
88
|
identityPoolId: never;
|
|
89
|
+
identityPoolEndpoint?: never;
|
|
59
90
|
allowGuestAccess?: never;
|
|
60
91
|
userPoolClientId: never;
|
|
61
92
|
userPoolId: never;
|
|
@@ -66,11 +97,19 @@ export declare const defaultServices: {
|
|
|
66
97
|
mfa?: never;
|
|
67
98
|
passwordFormat?: never;
|
|
68
99
|
groups?: never;
|
|
100
|
+
passwordless?: never;
|
|
69
101
|
} | {
|
|
70
102
|
loginMechanisms: ("email" | "phone_number" | "username")[];
|
|
71
103
|
signUpAttributes: UserAttributeKey[];
|
|
72
104
|
socialProviders: SocialProvider[];
|
|
105
|
+
passwordlessCapabilities: {
|
|
106
|
+
emailOtpEnabled: any;
|
|
107
|
+
smsOtpEnabled: any;
|
|
108
|
+
webAuthnEnabled: boolean;
|
|
109
|
+
preferredChallenge: any;
|
|
110
|
+
};
|
|
73
111
|
identityPoolId: string;
|
|
112
|
+
identityPoolEndpoint?: string;
|
|
74
113
|
allowGuestAccess?: boolean;
|
|
75
114
|
userPoolClientId: never;
|
|
76
115
|
userPoolId: never;
|
|
@@ -81,10 +120,17 @@ export declare const defaultServices: {
|
|
|
81
120
|
mfa?: never;
|
|
82
121
|
passwordFormat?: never;
|
|
83
122
|
groups?: never;
|
|
123
|
+
passwordless?: never;
|
|
84
124
|
} | {
|
|
85
125
|
loginMechanisms: ("email" | "phone_number" | "username")[];
|
|
86
126
|
signUpAttributes: UserAttributeKey[];
|
|
87
127
|
socialProviders: SocialProvider[];
|
|
128
|
+
passwordlessCapabilities: {
|
|
129
|
+
emailOtpEnabled: any;
|
|
130
|
+
smsOtpEnabled: any;
|
|
131
|
+
webAuthnEnabled: boolean;
|
|
132
|
+
preferredChallenge: any;
|
|
133
|
+
};
|
|
88
134
|
userPoolClientId: never;
|
|
89
135
|
userPoolId: never;
|
|
90
136
|
userPoolEndpoint?: never;
|
|
@@ -94,12 +140,20 @@ export declare const defaultServices: {
|
|
|
94
140
|
mfa?: never;
|
|
95
141
|
passwordFormat?: never;
|
|
96
142
|
groups?: never;
|
|
143
|
+
passwordless?: never;
|
|
97
144
|
identityPoolId: never;
|
|
145
|
+
identityPoolEndpoint?: never;
|
|
98
146
|
allowGuestAccess?: never;
|
|
99
147
|
} | {
|
|
100
148
|
loginMechanisms: ("email" | "phone_number" | "username")[];
|
|
101
149
|
signUpAttributes: UserAttributeKey[];
|
|
102
150
|
socialProviders: SocialProvider[];
|
|
151
|
+
passwordlessCapabilities: {
|
|
152
|
+
emailOtpEnabled: any;
|
|
153
|
+
smsOtpEnabled: any;
|
|
154
|
+
webAuthnEnabled: boolean;
|
|
155
|
+
preferredChallenge: any;
|
|
156
|
+
};
|
|
103
157
|
userPoolClientId: string;
|
|
104
158
|
userPoolId: string;
|
|
105
159
|
userPoolEndpoint?: string;
|
|
@@ -128,12 +182,28 @@ export declare const defaultServices: {
|
|
|
128
182
|
groups?: Record<string, {
|
|
129
183
|
[x: string]: number;
|
|
130
184
|
}>[];
|
|
185
|
+
passwordless?: {
|
|
186
|
+
emailOtpEnabled?: boolean;
|
|
187
|
+
smsOtpEnabled?: boolean;
|
|
188
|
+
webAuthn?: {
|
|
189
|
+
relyingPartyId?: string;
|
|
190
|
+
userVerification?: string;
|
|
191
|
+
};
|
|
192
|
+
preferredChallenge?: import("@aws-amplify/core/dist/esm/singleton/Auth/types").PreferredChallenge;
|
|
193
|
+
};
|
|
131
194
|
identityPoolId: never;
|
|
195
|
+
identityPoolEndpoint?: never;
|
|
132
196
|
allowGuestAccess?: never;
|
|
133
197
|
} | {
|
|
134
198
|
loginMechanisms: ("email" | "phone_number" | "username")[];
|
|
135
199
|
signUpAttributes: UserAttributeKey[];
|
|
136
200
|
socialProviders: SocialProvider[];
|
|
201
|
+
passwordlessCapabilities: {
|
|
202
|
+
emailOtpEnabled: any;
|
|
203
|
+
smsOtpEnabled: any;
|
|
204
|
+
webAuthnEnabled: boolean;
|
|
205
|
+
preferredChallenge: any;
|
|
206
|
+
};
|
|
137
207
|
userPoolClientId: never;
|
|
138
208
|
userPoolId: never;
|
|
139
209
|
userPoolEndpoint?: never;
|
|
@@ -143,12 +213,20 @@ export declare const defaultServices: {
|
|
|
143
213
|
mfa?: never;
|
|
144
214
|
passwordFormat?: never;
|
|
145
215
|
groups?: never;
|
|
216
|
+
passwordless?: never;
|
|
146
217
|
identityPoolId: string;
|
|
218
|
+
identityPoolEndpoint?: string;
|
|
147
219
|
allowGuestAccess?: boolean;
|
|
148
220
|
} | {
|
|
149
221
|
loginMechanisms: ("email" | "phone_number" | "username")[];
|
|
150
222
|
signUpAttributes: UserAttributeKey[];
|
|
151
223
|
socialProviders: SocialProvider[];
|
|
224
|
+
passwordlessCapabilities: {
|
|
225
|
+
emailOtpEnabled: any;
|
|
226
|
+
smsOtpEnabled: any;
|
|
227
|
+
webAuthnEnabled: boolean;
|
|
228
|
+
preferredChallenge: any;
|
|
229
|
+
};
|
|
152
230
|
userPoolClientId: string;
|
|
153
231
|
userPoolId: string;
|
|
154
232
|
userPoolEndpoint?: string;
|
|
@@ -177,12 +255,28 @@ export declare const defaultServices: {
|
|
|
177
255
|
groups?: Record<string, {
|
|
178
256
|
[x: string]: number;
|
|
179
257
|
}>[];
|
|
258
|
+
passwordless?: {
|
|
259
|
+
emailOtpEnabled?: boolean;
|
|
260
|
+
smsOtpEnabled?: boolean;
|
|
261
|
+
webAuthn?: {
|
|
262
|
+
relyingPartyId?: string;
|
|
263
|
+
userVerification?: string;
|
|
264
|
+
};
|
|
265
|
+
preferredChallenge?: import("@aws-amplify/core/dist/esm/singleton/Auth/types").PreferredChallenge;
|
|
266
|
+
};
|
|
180
267
|
identityPoolId: never;
|
|
268
|
+
identityPoolEndpoint?: never;
|
|
181
269
|
allowGuestAccess?: never;
|
|
182
270
|
} | {
|
|
183
271
|
loginMechanisms: ("email" | "phone_number" | "username")[];
|
|
184
272
|
signUpAttributes: UserAttributeKey[];
|
|
185
273
|
socialProviders: SocialProvider[];
|
|
274
|
+
passwordlessCapabilities: {
|
|
275
|
+
emailOtpEnabled: any;
|
|
276
|
+
smsOtpEnabled: any;
|
|
277
|
+
webAuthnEnabled: boolean;
|
|
278
|
+
preferredChallenge: any;
|
|
279
|
+
};
|
|
186
280
|
userPoolClientId: string;
|
|
187
281
|
userPoolId: string;
|
|
188
282
|
userPoolEndpoint?: string;
|
|
@@ -211,7 +305,17 @@ export declare const defaultServices: {
|
|
|
211
305
|
groups?: Record<string, {
|
|
212
306
|
[x: string]: number;
|
|
213
307
|
}>[];
|
|
308
|
+
passwordless?: {
|
|
309
|
+
emailOtpEnabled?: boolean;
|
|
310
|
+
smsOtpEnabled?: boolean;
|
|
311
|
+
webAuthn?: {
|
|
312
|
+
relyingPartyId?: string;
|
|
313
|
+
userVerification?: string;
|
|
314
|
+
};
|
|
315
|
+
preferredChallenge?: import("@aws-amplify/core/dist/esm/singleton/Auth/types").PreferredChallenge;
|
|
316
|
+
};
|
|
214
317
|
identityPoolId: string;
|
|
318
|
+
identityPoolEndpoint?: string;
|
|
215
319
|
allowGuestAccess?: boolean;
|
|
216
320
|
}>;
|
|
217
321
|
getCurrentUser: () => Promise<import("aws-amplify/auth").AuthUser>;
|
|
@@ -226,4 +330,5 @@ export declare const defaultServices: {
|
|
|
226
330
|
validateFormPassword(formData: AuthFormData, touchData: AuthTouchData, passwordSettings: PasswordSettings): Promise<ValidatorResult>;
|
|
227
331
|
validateConfirmPassword(formData: AuthFormData, touchData: AuthTouchData): Promise<ValidatorResult>;
|
|
228
332
|
validatePreferredUsername(_: AuthFormData, __: AuthTouchData): Promise<ValidatorResult>;
|
|
333
|
+
validateRequiredFieldsForAuthMethod(formData: AuthFormData): Promise<ValidatorResult>;
|
|
229
334
|
};
|