Modify authenticateUser to handle the new callbacks. #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This was written as a fix for: #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.