Closed ChloeH88 closed 9 months ago
Hello @ChloeH88. Sorry to hear you are experiencing issues. Can you share what is the network request after calling to Auth.signIn
? If you can see there is only one request to InitiateAuth
, it means the issue is related with the lambda configuration.
Thanks @israx . The user checked, there were 2 requests to InitiateAuth. This explains the two emails, but what could be the source of this issue? User was using safari but safari works fine when we were testing.
Is this happening to one end-user that is using Safari ? Are you able to reproduce this in different browsers ? Wondering if different Safari versions would behave different.
@ChloeH88, are you still experiencing this issue? If so, is this reproducible in different browsers?
Closing this issue as we have not heard back from you. If you are still experiencing this, please feel free to reply back and provide any information previously requested and we'd be happy to re-open the issue.
Thank you!
Apologize for the late reply. I was on a vacation.
This only happens to one user using Safari, but we didn't get any response from that user for trying other browsers. So anayways, I'll reach out if the issue happens again.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
REST API
Amplify Categories
No response
Environment information
Describe the bug
I followed the
createAuthChallenge
code here: https://github.com/theburningmonk/passwordless-otp-cognito-demo/blob/main/functions/create-auth-challenge.js to set up my custom login flow with sending login code to user email. This is pretty much the same as this aws documentation .Upon amplify signIn, most users got only one email when login. But one user, no matter code or warm start, got two emails with different codes, meaning createAuthChallenge was triggered twice. All other users with same email domain have no such issues.
I checked previous closed issue #4805 , but since my issue happens no matter cold or warm start, and it's specific to one user, I decided to open a new issue.
Expected behavior
Upon clicking amplify signIn, each user receives one email/code.
Reproduction steps
Call Auth.signup() with link to the code. But since this issue is specific to one email address, it's hard to reproduce.
First lambda instance:
It triggers another lambda instance:
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response