We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d20421 commit 97cc383Copy full SHA for 97cc383
lib/refresh.js
@@ -54,6 +54,10 @@ AuthTokenRefresh.use = function(name, strategy) {
54
strategy._refreshURL || strategy._oauth2._accessTokenUrl,
55
strategy._oauth2._customHeaders)
56
};
57
+
58
+ // Some strategies use overwrite the getOAuthAccessToken function to set headers
59
+ // https://github.com/fiznool/passport-oauth2-refresh/issues/10
60
+ AuthTokenRefresh._strategies[name].refreshOAuth2.getOAuthAccessToken = strategy._oauth2.getOAuthAccessToken;
61
62
63
/**
0 commit comments