HI,
I have scenario like this in cognito :
When the user has entered the credentials but didn't confirm it , then it will be saved as unconfirmed in the cognito. So, unless the user confirms the link it will be in unconfirmed state in cognito . For this i had used Auth.resendSignUp API but after usage of this API i got an error saying that LIMITEXCEEDEDEXCEPTON . But Auth.signup API is working fine without any error.
My Question :
Is there any limit for Auth.resendSignUp API ? If it is , How much ?
How long the confirmation link is active ?
Does Auth.forgotpassword API's verification can be done by sending a link rather than a code ?
Does Amplify has adminResetUserPassword API ? Usually the adminResetUserPassword API will reset the user password and also send an email with confirmation code. What i want is it need to reset the password but should not send the confirmation code. Is there any property in the API to change to achieve that ?
Any help is appreciated
Thanks
For limits:
https://docs.aws.amazon.com/cognito/latest/developerguide/limits.html
The verification code/link is valid for 24 hours:
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html
For forgot password, the confirmation currently supported is code:
https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ForgotPassword.html
@yuntuowang do you have insight as to if this is in the pipeline for the service?
Currently amplify does not have admin user functionality but this is in our roadmap. The cognito SDK directly does support this which you can drill down and use via Amplify directly in these cases.
Thanks @mlabieniec The cognito SDK directly does support this which you can drill down and use via Amplify directly in these cases. You mean the adminResetUserPassword in cognito SDK supports resetting password and without sending you a code ? If it is could you point to that link ?
Thanks for your time.
No, what i mean is this API, the admin functionality, in general is not something that is currently supposed via Amplify, it IS supported via the Cognito SDK directly. See discussion on this here:
https://github.com/aws-amplify/amplify-js/issues/1213
Thanks for pointing to the thread. Yeah , I understand right now admin functionality is only present in Cognito SDK , But what am i asking is , When i used 'adminResetUserPassword` feature in Cognito SDK it resets the password and sends you a link . Is there any workaround or a property such that it only resets your password and doesn't send you a link.
Because i checked in the documentation too but didn't find such feature.
Thanks
Got it, I'm not aware there is that feature, @yuntuowang do you know if this is something that is possible with the API, otherwise can you record as a feature request.
@Private-SO Did you find a way to resend the verification link, not the " CODE"
@malinda1986 This request is included in the following RFC:
https://github.com/aws-amplify/amplify-cli/issues/766
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.
Most helpful comment
@Private-SO Did you find a way to resend the verification link, not the " CODE"