Closed frakman1 closed 4 years ago
Since Robinhood doesn't support an official API, they are constantly changing how their login process works. They previously had window vars in js that were included in the HTML response on their login form. I relied on those variables to be able to log in. Now it looks like they are gone (replaced mostly by cookies and other JS scripts it seems), which is why you are seeing that error.
I went ahead and updated the master branch with a login method that works... for now. Like I said, since it's an unofficial API, it makes it difficult to create a reliable connection method.
Let me know if you have any issues.
Thank you for quickly resolving this. I realize this is an "as-is" and "best-effort" service given the unofficial nature of the API. I am very grateful to you for making this possible. Thanks again!
@bcwik9 Unfortunately, this didn't work for me with 2FA enabled.
I entered my username/password and clicked on Login, then it asked me to enter the security code. So I filled out the form again, this time entering the security code (twice). For some reason, there were two fields entitled 'Security Code'. Now I get this error:
Update. If I disable 2FA in Robinhood Settings->Security:
... and login with username/password, I still get sent a code via SMS with a slightly different wording "Your Robinhood code is xxx. This code will expire in 5 minutes." instead of the previous "Robinhood Code: xxxx." when 2FA was enabled.
Now, the webpage asks me to enter my security code (this time only once) in the new Security Code field and it works!
So as long as I disable 2FA, I can get this to work. Better than nothing I suppose haha
¯\_(ツ)_/¯
@frakman1 @bcwik9 I played around with this for a few minutes. With 2FA On, the top field is the 2FA security code, the bottom field, challenge code, is not required (see URL param) but a bug is preventing the form submission without a value.
To bypass, I open the inspector and remove "required" from the challenge code html node (bottom) and fill user/pass/(top) security code (with 2FA value). It works.
@frakman1 @bcwik9 I played around with this for a few minutes. With 2FA On, the top field is the 2FA security code, the bottom field, challenge code, is not required (see URL param) but a bug is preventing the form submission without a value.
To bypass, I open the inspector and remove "required" from the challenge code html node (bottom) and fill user/pass/(top) security code (with 2FA value). It works.
Thanks for the input. I had a moment to fix the 2FA issue in the master branch today.
To bypass, I open the inspector and remove "required" from the challenge code html node (bottom) and fill user/pass/(top) security code (with 2FA value). It works.
I love the ingenuity!
Hi @bcwik9. Thank you for making this! I can't wait to use it.
I just installed this manually on my Mac OSX 10.13.6 (High Sierra) after getting all the ruby issues resolved (rvm, ruby, gem, bundler versions)
After running the local server on port 3000, I attempt to login with my credentials and I get this "Missing device token" error. I get this error both with and without Two Factor Authentication on my account.
System details:
Traceback:
I'd love to finally get this working. Please let me know if you need any more information. Thank you!