wirejs-deploy-amplify-basic 0.0.39 → 0.0.41

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.
@@ -248,7 +248,7 @@ export class AuthenticationService extends AuthenticationServiceBase {
248
248
  });
249
249
  await client.send(command);
250
250
  return {
251
- ...this.getMachineState(cookies),
251
+ ...await this.getMachineState(cookies),
252
252
  message: 'Your code has been sent again.'
253
253
  };
254
254
  }
@@ -285,7 +285,10 @@ export class AuthenticationService extends AuthenticationServiceBase {
285
285
  const signinCommand = new InitiateAuthCommand({
286
286
  ClientId,
287
287
  AuthFlow: 'USER_AUTH',
288
- Session: result.Session
288
+ Session: result.Session,
289
+ AuthParameters: {
290
+ USERNAME: email
291
+ }
289
292
  });
290
293
  const signinResult = await client.send(signinCommand);
291
294
  signinResult.AuthenticationResult?.AccessToken;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",