Skip to content

Commit

Permalink
Return promise in signIn (#5021)
Browse files Browse the repository at this point in the history
Co-authored-by: Manuel Iglesias <6154160+manueliglesias@users.noreply.github.com>
  • Loading branch information
janoist1 and manueliglesias authored Mar 26, 2020
1 parent 4cf7b72 commit cb902b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-amplify-react-native/src/Auth/SignIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class SignIn extends AuthPiece {
const username = this.getUsernameFromInput() || '';
const { password } = this.state;
logger.debug('Sign In for ' + username);
Auth.signIn(username, password)
return Auth.signIn(username, password)
.then(user => {
logger.debug(user);
const requireMFA = user.Session !== null;
Expand Down

0 comments on commit cb902b0

Please sign in to comment.