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
@idkjs I am actually not using the composePhoneNumber method, but maybe I should be using it or something like it. Instead, you would have to add the phone number manually:
+19045555555
Or something like it. You could also add the helper method locally, something like just adding the function and processing the user input:
@dabit3 ok. Any docs on how to not show an unused field using withAuthenticator? In this case, lets you input the info then throws an error and doesn't do anything. Must be in options somewhere.
** Which Category is your question related to? **
invalid phone number input in
aws-amplify-react
** What AWS Services are you utilizing? **
Aws Amplify Console auth starters here: https://github.com/aws-samples/aws-amplify-auth-starters
** Provide additional details e.g. code snippets **
I have deployed using the
click to deploy
button.While trying to sign in I get this error:
I get this whether the format is
+1 999-999-9999
or999-999-999
which should work if I am reading the following correctly:amplify-js/packages/aws-amplify-react/src/Auth/PhoneField.jsx
Lines 25 to 27 in ece0b22
What is the correct format for inputting a phone number?
I have noticed that you can bypass this by leaving the phone number blank, but that does not answer the question, obviously.
Thank you.
The text was updated successfully, but these errors were encountered: