You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello sirdiego. Is this repo still up to date?
I get this error by using the method this.$auth.loginWith( ... )
Can you tell me what I should add to my strategy? Thank you
TypeError: callback.newPasswordRequired is not a function
at CognitoUser.authenticateUserInternal (CognitoUser.js?3c43:466)
at eval (CognitoUser.js?3c43:344)
at eval (CognitoUser.js?3c43:323)
at eval (Client.js?1610:119)
The text was updated successfully, but these errors were encountered:
This packages works just perfect. Just use a try catch and rest of the callbacks can be handled the way you need.
methods: {asynclogin(){try{awaitthis.$auth.loginWith("cognito",{data: {username: this.username,password: this.password},});console.log(this.$auth);}catch(e){console.log("Exception occured, which could not be handled by lib!");console.log(e.stack);conststate=(e.message.split(".")).pop().split(" ").shift().toUpperCase();switch(state){case"NEWPASSWORDREQUIRED":
this.newPasswordRequired();break;default:
console.log("Exception to be handeled for "+state);}}},newPasswordRequired(){console.log("Navigate to new password page!!!");}}
Hello sirdiego. Is this repo still up to date?
I get this error by using the method
this.$auth.loginWith( ... )
Can you tell me what I should add to my strategy? Thank you
The text was updated successfully, but these errors were encountered: