aurbano / robinhood-node

:chart_with_upwards_trend: NodeJS client for Robinhood Trading :fire:

Home Page:https://aurbano.github.io/robinhood-node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to retrieve the refresh_token

altera-ops opened this issue · comments

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.

commented

@altera-ops any progress on this?