AWS Cognito login with username and phone-number
I need to create a user pool on Amazon Cognito. The users will be registered with serial_number as their username and phone number, which should be modifiable. In the login page, users will enter serial_number and phone number. If the user is registered, an OTP will be sent to the phone number and then after the user input verified via Cognito. If not registered, an error message will be shown.