-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No SMS Message Sent to user after calling Auth.SignIn() #5137
Comments
@richAtreides Could you go in your console and see if SMS is enabled for the user. I have an idea on what might be going on. Steps to check might be:
Let me know if this works. |
@ashika01 Hi Again! I already checked that unfortunately and it is enabled. I additionally logged the user that is returned from the |
Hmm.. I see you created the totp issue that we are tracking with service team as well. Do you think there maybe a relation.? |
@ashika01 its unlikely they are related as I am working on separate feature branches with no cross dependency. The TOTP issue is to do with the authenticator component contained in amplify-react whereas here I am interacting directly with the amplify-js API and providing my own components using material-ui. My issue is that surely when you call the method Auth.SignIn() if SMS MFA is enabled on a user then a lambda should be trigger to send the SMS message? Or if not is there another method I need to call? |
@ashika01 I think our SMS Message limit must have been hit. |
@richAtreides did u find a way to test it? |
@ashika01, I have tried again yet but I solved it by just implementing my own custom TOTP using soft tokens. It works fine, I built it using the auth API directly and integrating it with Material-UI. |
@richAtreides Cool. we have a beta of new UI components out and we are working on making this follow better. If u want to give it a try we have it in preview. #3279 (comment) we are working on documentation for this right now. But we have a TOTP flow integrated in this. |
Verification code (SMS) not received for the user while Auth.signUp in aws-amplify-react-native. How can I check the user received code or not and need to enable MFA for that particular user. |
@nihp did you find a solution ? |
Also having same problem with signup not sending codes to certain phones |
KOSSOKO I can able to get the code while signUp. But I didn't get any solution how to track this. Did the user received the code or not? Still searching. |
@richAtreides I had the same problem but I fixed it by requesting a dedicated long number in aws pinpoint. Amplify was getting successful responses and sns reported successes, however I couldnt get the messages some days and others I could. I am assuming this is because when you dont have a dedicated phone number to send messages from you get an aws default one that is most likely being carrier filtered (twilio has a great article on this). You can get around this by using your own dedicated numbers. |
@cor1 Thanks a lot for the tip. I actually ended up creating my own Auth flow using Soft Tokens to avoid the whole phone number thing all together. I posted a guide on how to do it here: https://levelup.gitconnected.com/guide-soft-token-authentication-with-aws-amplify-cognito-and-material-ui-react-with-typescript-31094f96968b. |
I just ran into this issue and it seems to be related to my ATT phone... |
I am having the same exact issue. Result from API call is telling me that the code is being sent SMS to my phone. But no code is ever received. It was woking before and no longer works. |
Same issue. But i couldn't understand how to increase the limit in sns. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
I am currently implementing my own UI for the authentication workflow by integrating the Auth package within aws-amplify-js with Material-UI.
I have implemented a SignIn page which works fine and returns the appropriate user. When I added an SMS MFA layer and a page to accept the code. This is all hooked up correctly as well. However it seems that the Auth.SignIn() is not sending the SMS to my mobile phone.
I am very confused as I had this working fine when using withAuthenticator, and later Authenticator components. Furthermore I have read the underlying code on github for all of the auth components and can see no special manual trigger that is being called to send the SMS and having read the payload I get back from calling Auth.Sign() it seems clear it is sending the message to my mobile phone.
To Reproduce
My SignIn() Component for completeness
Expected behavior
SMS Message received by logging in user.
The text was updated successfully, but these errors were encountered: