Specify additional parameters to the refresh request
klousiaj opened this issue · 3 comments
VisualStudio Online requires a Callback URL be provided as a parameter on the refresh request. The current implementation doesn't allow for that parameter to be added.
Can a mechanism be added to specify extra parameters beyond the coded
var params = { grant_type: 'refresh_token' };
@klousiaj I apologise for taking so long to look at this.
I've just published v1.0.0 of this library, which includes a way of using extra parameters:
var extraParams = { some: 'extra_param' };
refresh.requestNewAccessToken('gmail', 'some_refresh_token', extraParams, done);
Hope this suits your needs, and thanks for your ongoing support!
I'm getting an issue where the new refreshed access token doesn't seem to have the same auth scopes as the original one. Do you know if the scopes need to be re-declared as extraParams
?
@tnguyen14 I suggest that you open a new issue to track this, with some code that reproduces the issue. Thanks!