amazon-archives / aws-cognito-angular-quickstart

An Angular(v5)-based QuickStart single-page app utilizing Amazon Cognito, S3, and DynamoDB (Serverless architecture)
https://cognito.budilov.com
Apache License 2.0
689 stars 304 forks source link

Implement support for MFA (SMS or email) when logging in. Also update dependencies (ng 5.1.0, etc). #122

Closed amirtoole closed 6 years ago

amirtoole commented 6 years ago

This resolves #121

joe455 commented 6 years ago

@hellofornow I followed the same steps but getting error.

callback.mfaSetUp is not a function.

Any Idea?

amirtoole commented 6 years ago

Did you run npm install before trying this PR? I did update the amazon-cognito-identity-js dependency (taking a guess that's the problem).

joe455 commented 6 years ago

@hellofornow I found the route cause finally.

Also, I followed docs here and customised my code to verify both email and phone.

Thanks for the immediate response and your PR is working just fine with the latest version of cognito JS SDK.

Kudos @hellofornow for the PR

Let me know if you found any solution to add facebook user to user pool :p Happy weekend!!!

joe455 commented 6 years ago

@hellofornow OnSubmit() is not getting called.

Use Submit instead of OnSubmit. 👍