Skycatch / node-box

Box API client for Node.JS
MIT License
21 stars 19 forks source link

add method to fetch new access token from refresh token #4

Closed ekump closed 9 years ago

ekump commented 9 years ago

Add a method to request a new access token from a user's refresh token. Will update and return both the access token and the refresh token.

lyaunzbe commented 9 years ago

Looks good, though it might make sense to pass the client_id and client_secret to the initial constructor for the module, rather than to this method (so that we can then access it from this.options)

ekump commented 9 years ago

Agreed, setting the id/secret on the constructor would make more sense. I'll make that change.

lyaunzbe commented 9 years ago

Sorry for the delay @ekump, your PR is much appreciated. Thanks!