Since the registration in our application is invitation based, he receives the email in his inbox, then he signs up from there, making it redundant to still need to confirm his registration.
amazon-cognito-identity-js had the ability to automatically confirm the email on sign-up, so the user no longer required to receive an eMail, and confirm his registration.
How can I achieve this using AWS-Amplify?
This is the code I am currently using:
Auth.signUp({
attributes: {
'custom:lastName': lastName,
'custom:firstName': firstName
},
username: username,
password: password
}
)
@WSorban, not sure Amplify exposes such interface, but you could implement one yourself with a Pre-sign up Lambda trigger on your Cognito user pool. Just set event.response.autoVerifyEmail = true
It is well documented here: https://goo.gl/UdC6Uk
I do not believe this is offered out of the box, but if @temideoye 's suggestion is not satisfactory please feel free to submit a feature request.
Does anything like this exist or does it need to be manually implemented?
Most helpful comment
@WSorban, not sure Amplify exposes such interface, but you could implement one yourself with a Pre-sign up Lambda trigger on your Cognito user pool. Just set
event.response.autoVerifyEmail = trueIt is well documented here: https://goo.gl/UdC6Uk