Skip to content

Commit eabeb17

Browse files
committed
Showing error messages for various auth cases
1 parent ba7fbd9 commit eabeb17

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@ function authenticate(callback) {
102102
},
103103
onFailure: function(err) {
104104
console.log(err.message ? err.message : err);
105+
},
106+
newPasswordRequired: function() {
107+
console.log("Given user needs to set a new password");
108+
},
109+
mfaRequired: function() {
110+
console.log("MFA is not currently supported");
111+
},
112+
customChallenge: function() {
113+
console.log("Custom challenge is not currently supported");
105114
}
106115
});
107116
}

0 commit comments

Comments
 (0)