From 15ae2ccf86401a2f15937321512fff77e7a2082f Mon Sep 17 00:00:00 2001 From: josh fernandes Date: Mon, 20 Jul 2020 15:36:57 -0700 Subject: [PATCH] fixed typo and added more MFA instruction --- README.rst | 4 +++- robin_stocks/authentication.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 74ec79d..737d778 100644 --- a/README.rst +++ b/README.rst @@ -64,7 +64,9 @@ the resulting MFA code into the prompt on your robinhood app. >>> print("Current OTP:", totp) Once you have entered the above MFA code (the totp variable that is printed out) into your Robinhood account, it will give you a backup code. -Make sure you do not lose this code or you may be locked out of your account!!! +Make sure you do not lose this code or you may be locked out of your account!!! You can also take the exact same "My2factorAppHere" from above +and enter it into your phone's authentication app, such as Google Authenticator. This will cause the exact same MFA code to be generated on your phone +as well as your python code. This is important to do if you plan on being away from your computer and need to access your Robinhood account from your phone. Now you should be able to login with the following code, diff --git a/robin_stocks/authentication.py b/robin_stocks/authentication.py index 93b7f13..3ec255d 100644 --- a/robin_stocks/authentication.py +++ b/robin_stocks/authentication.py @@ -140,7 +140,7 @@ def login(username=None, password=None, expiresIn=86400, scope='internal', by_sm else: os.remove(pickle_path) - # Try to log in normOally. + # Try to log in normally. if not username: username = input("Robinhood username: ") payload['username'] = username