aurbano / robinhood-node

:chart_with_upwards_trend: NodeJS client for Robinhood Trading :fire:
https://aurbano.github.io/robinhood-node
MIT License
694 stars 185 forks source link

how to persist auth? #126

Open jasan-s opened 3 years ago

jasan-s commented 3 years ago

question:

Using username/password combo the auth_token is retrieved.

the auth token expires_in 24 hours.

How to persist auth so a new auth_token is retrieved before it expires.

something like session saving possible? i.e refreshing auth_token using refresh_token