wirejs-deploy-amplify-basic 0.0.31 → 0.0.33
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.
|
@@ -140,7 +140,7 @@ export class AuthenticationService extends AuthenticationServiceBase {
|
|
|
140
140
|
return {
|
|
141
141
|
state: 'unauthenticated',
|
|
142
142
|
user: undefined,
|
|
143
|
-
actions: machineActions('completesignup', 'cancel')
|
|
143
|
+
actions: machineActions('completesignup', 'resendsignupcode', 'cancel')
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
else if (state?.substate === 'pending-continueforgotpassword') {
|
|
@@ -161,7 +161,7 @@ export class AuthenticationService extends AuthenticationServiceBase {
|
|
|
161
161
|
return {
|
|
162
162
|
state: 'unauthenticated',
|
|
163
163
|
user: undefined,
|
|
164
|
-
actions: machineActions('signin', 'startsignup', 'startforgotpassword')
|
|
164
|
+
actions: machineActions('signin', 'startsignup', 'startforgotpassword', 'resendsignupcode')
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
}
|
|
@@ -186,8 +186,11 @@ export class AuthenticationService extends AuthenticationServiceBase {
|
|
|
186
186
|
const state = await this.#cookie.read(cookies);
|
|
187
187
|
if (!state)
|
|
188
188
|
return this.getMachineState(cookies);
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
await this.#cookie.write(cookies, {
|
|
190
|
+
...state,
|
|
191
|
+
substate: undefined,
|
|
192
|
+
metadata: undefined
|
|
193
|
+
});
|
|
191
194
|
return this.getMachineState(cookies);
|
|
192
195
|
}
|
|
193
196
|
else if (isAction(form, 'startsignup')) {
|
|
@@ -278,7 +281,7 @@ export class AuthenticationService extends AuthenticationServiceBase {
|
|
|
278
281
|
}
|
|
279
282
|
const command = new ConfirmSignUpCommand({
|
|
280
283
|
ClientId,
|
|
281
|
-
Username:
|
|
284
|
+
Username: email,
|
|
282
285
|
ConfirmationCode: form.inputs.code
|
|
283
286
|
});
|
|
284
287
|
await client.send(command);
|