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
By accident I made phoneCode callback to always return the same resolved promise.
And did not return true from onError callback.
Then I invalidated code by sending it to my bot's private chat, so that auth.SignIn throws PhoneCodeExpiredError.
In a couple of seconds this combination got my account banned for flood for 1 hour, due to hundreds of signIn attempts before I stopped the server manually.
Steps to reproduce:
phoneCode
callback to always return the same resolved promise.true
fromonError
callback.auth.SignIn
throwsPhoneCodeExpiredError
.In a couple of seconds this combination got my account banned for flood for 1 hour, due to hundreds of signIn attempts before I stopped the server manually.
Relevant
while
loop:gramjs/gramjs/client/auth.ts
Lines 168 to 210 in 0471403
The text was updated successfully, but these errors were encountered: