anilshanbhag / RobinhoodShell

A command line shell for trading stocks using Robinhood
MIT License
411 stars 94 forks source link

Challenge-Type Issue #24

Open austinw9 opened 5 years ago

austinw9 commented 5 years ago

I do not understand the Challenge-Type in the config.py. If I do not have 2FA, what do I put there? Or, if I have 2FA for sms, I have sms in the field, and it still gives email as the challenge type when I run shell.py. I do not get a sms code and so I do not know what to input. Thanks for any help.

OrbitalT commented 5 years ago

I'm testing a few things now relating to this problem (happening to me aswell). In the Robinhood app you need to turn on 2FA and have it send the codes va SMS. in the config change "type" to sms and the "USERNAME" change it to your email. after changing the user to email it started sending the codes but it throws errors when i input the code

anilshanbhag commented 5 years ago

There was some issue. I fixed the flow, SMS seems to work fine for me now. Set CHALLENGE_TYPE = 'sms' in config.py

riceroll commented 5 years ago

After setting CHALLENGE_TYPE = 'sms', I got the error message

Traceback (most recent call last): File "./shell.py", line 70, in __init__ data = open(self.auth_file).read() FileNotFoundError: [Errno 2] No such file or directory: 'auth.data'