This was written as a fix for: https://github.com/kopterio/vue-auth-cognito/issues/45
amazon-cognito-identity-js changed in late 2016 to use a different callback instead of reusing "success". That broke vue-auth-cognito.
Add completeNewPasswordChallenge for users created by the admin so users can set their password and be logged in.
Required adding lodash.clonedeep to persist the cognitoUser object. I couldn't find any other way to reuse the cognitoUser object "elegently."
I did reuse the userConfirmationNecessary flag that already existed, though this will still require modifying any code that would have used the old code.
This implementation is still missing
Unit tests
Documentation on using it
mfaRequired handling, which we aren't using. I added the stub for it.
I also left a lot of comments in the code from the documentation.
This was written as a fix for: https://github.com/kopterio/vue-auth-cognito/issues/45 amazon-cognito-identity-js changed in late 2016 to use a different callback instead of reusing "success". That broke vue-auth-cognito.
Add completeNewPasswordChallenge for users created by the admin so users can set their password and be logged in. Required adding lodash.clonedeep to persist the cognitoUser object. I couldn't find any other way to reuse the cognitoUser object "elegently."
I did reuse the userConfirmationNecessary flag that already existed, though this will still require modifying any code that would have used the old code.
This implementation is still missing
I also left a lot of comments in the code from the documentation.