Open rizahassan opened 3 years ago
Perhaps try to use that access token to get the account information. If the account info check returns something (like an email), then the credentials provided are valid. Not sure if this will work. But I think it's worth giving it a shot.
Hello, I am new to using robin_stocks for Robinhood API. Looking forward to suggestions on this issue.
I am trying to figure out how to determine if a user logs in with incorrect credential. Currently, if a user inputs any username and password in the login() arguments (including a false credential), the program will return an access token. The code is shown below:
How can we check using robin_stocks if a user is logging in with incorrect credential?