aurbano / robinhood-node

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

Unable to retrieve the refresh_token #124

Open altera-ops opened 3 years ago

altera-ops commented 3 years ago

Expected result

Alphanumeric refresh token.

Actual behaviour

Null output.

Reproducing

Modified the api code to include

api.refresh_token = function () {
    return _private.refresh_token;
};

and attempted to retrieve the token after initializing Robinhood with my credentials and mfa code

console.log(Robinhood.refresh_token())

Note, I am successfully able to retrieve the auth_token as follows:

console.log(Robinhood.auth_token())

My goal is to retrieve the refresh_token and write a method to persist authentication past the 24 hour expiration.

jasan-s commented 3 years ago

@altera-ops any progress on this?