Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOT ABLE TO SIGN UP #31

Open
arhoy opened this issue Mar 27, 2020 · 5 comments
Open

NOT ABLE TO SIGN UP #31

arhoy opened this issue Mar 27, 2020 · 5 comments

Comments

@arhoy
Copy link

arhoy commented Mar 27, 2020

I have got the starter setup and after running gatsby develop I cannot sign up

Why is this happening and how come it is so difficult (impossible) to sign up?
phone numbers tried
555 555 5555
555-555-6555
(555) -555-6555

error signing up...
{code: "InvalidParameterException", name: "InvalidParameterException", message: "Invalid phone number format."}
code: "InvalidParameterException"
name: "InvalidParameterException"
message: "Invalid phone number format."
proto: Object

@mtliendo
Copy link

AWS (Cognito) expects a country code to be passed in as well ie +1 if you're in the US

full example +15555555555

@arhoy
Copy link
Author

arhoy commented Mar 27, 2020

Ok thank you! Is there a way to change the error messages I am getting back? They are quite mystical.
Also was wondering if there is some react hook demos/repos with Facebook and Google Auth, the docs are really killing me

@mtliendo
Copy link

Not that I know of. Even though Amplify is open source, it still injects data into AWS at the end of the day, so the error message you’re getting isn’t coming from Amplify, so much as it is Cognito—Amazon’s user service.

With regards to integrating google and Facebook, Nader also has videos up in case the docs need updating.

For Facebook sign in: https://youtu.be/F6ZPTKiEJx4

For google: https://youtu.be/eqDUSY9KHYE

Hope those help 😁 if not, feel free to open up an issue on the cli or tag me on Twitter (@mtliendo) and I’ll be happy to help out.

@arhoy
Copy link
Author

arhoy commented Mar 27, 2020

Thanks for the youtube links I will check them out.
As for your previous comment, how are people handling error message in real life? Because it is clearly a lot different than the alert message json string pop ups from the starter file 😁
I am looking for ways to modify that userflow

@mtliendo
Copy link

That's a good point. I'll dive a bit deeper this weekend and see if that error can be caught so it's not breaking the app. This'll take place over in the amplify/cli repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants