You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey!
In our app we use Amplify for the sign in flow and password reset. We have some bug in logic compares to Android sdk, which works as expected.
User receives verification code #1 and then request another code #2. We expect that only newest verification code will be valid, but in fact all received verification codes are valid.
Android sdk accept only newest verification code.
This function is used for password reset.
Steps To Reproduce
Steps to reproduce the behavior:1. Got to reset password
2. Click on 'Resend code' and have 2 codes in your mail.3. Use old one
4. This old one code is acceptedasvalid
Expected behavior
Only newest verification code accepted
Amplify Framework Version
2.8.1
Amplify Categories
Auth
Dependency manager
Swift PM
Swift version
5
CLI version
Xcode version
14.3
Relevant log output
No response
Is this a regression?
Yes
Regression additional context
No response
Platforms
No response
OS Version
15.0
Device
iPhone 13 Pro max
Specific to simulators
no
Additional context
No response
The text was updated successfully, but these errors were encountered:
@Elza-Hoff I tested on Amplify Swift and can see that older codes are not accepted. Amplify Swift simply passes on the code to Cognito and doesn't have any client side logic.
Would you be able to share testing steps that you are performing for this use case? Is there anything different compared to iOS and Android implementation?
@Elza-Hoff I tested on Amplify Swift and can see that older codes are not accepted. Amplify Swift simply passes on the code to Cognito and doesn't have any client side logic.
Would you be able to share testing steps that you are performing for this use case? Is there anything different compared to iOS and Android implementation?
Firstly I use this function
And then I use this function for password reset and it still validate all verification codes
I am still not super clear what the use case is.. You have shared with me 2 very different API's. One API is for sign up whereas the other one is for reset password.
Would you be able to share the code snippet that is causing you this problem?
Describe the bug
Hey!
In our app we use Amplify for the sign in flow and password reset. We have some bug in logic compares to Android sdk, which works as expected.
User receives verification code #1 and then request another code #2. We expect that only newest verification code will be valid, but in fact all received verification codes are valid.
Android sdk accept only newest verification code.
This function is used for password reset.
Steps To Reproduce
Expected behavior
Only newest verification code accepted
Amplify Framework Version
2.8.1
Amplify Categories
Auth
Dependency manager
Swift PM
Swift version
5
CLI version
Xcode version
14.3
Relevant log output
No response
Is this a regression?
Yes
Regression additional context
No response
Platforms
No response
OS Version
15.0
Device
iPhone 13 Pro max
Specific to simulators
no
Additional context
No response
The text was updated successfully, but these errors were encountered: