Skip to content

Commit

Permalink
add missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsaw committed Jul 5, 2018
1 parent aaeb654 commit 6766873
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/cognito_user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ class CognitoUser {
'DeviceName': deviceName,
};

final dataConfirm = await client.request('ConfirmDevice', paramsConfirmDevice);
final dataConfirm =
await client.request('ConfirmDevice', paramsConfirmDevice);

_deviceKey = dataAuthenticate['AuthenticationResult']['NewDeviceMetadata']
['DeviceKey'];
Expand Down Expand Up @@ -714,7 +715,7 @@ class CognitoUser {
}

final dataAuthenticate =
client.request('RespondToAuthChallenge', paramsReq);
await client.request('RespondToAuthChallenge', paramsReq);

final String challengeName = dataAuthenticate['ChallengeName'];

Expand Down

0 comments on commit 6766873

Please sign in to comment.