Auth tokens for Robinhood lasts about a day. That means after a day, we beed to refresh the token, or else the Robinhood API will return a 401 error. One way to do this will be to log the user out and back in every few hours. Check the documentation for the corresponding functions: https://robin-stocks.readthedocs.io/en/latest/robinhood.html#logging-in-and-out
Auth tokens for Robinhood lasts about a day. That means after a day, we beed to refresh the token, or else the Robinhood API will return a 401 error. One way to do this will be to log the user out and back in every few hours. Check the documentation for the corresponding functions: https://robin-stocks.readthedocs.io/en/latest/robinhood.html#logging-in-and-out