Skip to content

What must i do if signIn response with SignupRequired? #64

Answered by quenbyako
dataflowjs asked this question in Q&A
Discussion options

You must be logged in to vote

@imbaMF that's a good question, cause we only tested simple sign in case, not sign up.

If i correctly understood this part of telegram docs:

If the code was entered correctly, but the method returns auth.authorizationSignUpRequired, it means that account with this phone number doesn't exist yet: user needs to provide basic information, accept terms of service and then the new user registration method (auth.signUp) must be invoked.

so you need to call client.AuthSignUp instead client.AuthSignIn with, i think, same arguments, plus your first name, and, optionaly, last name.

Btw, since we don't have enough free phone numbers, I will be insanely happy if you create PR with example how to cr…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by quenbyako
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants