|
@@ -37,7 +37,7 @@ module.exports = {
|
|
|
})
|
|
|
|
|
|
client.userProfile = function (accesstoken, done) {
|
|
|
- this._oauth2._useAuthorizationHeaderForGET = true
|
|
|
+ this._oauth2._useAuthorizationHeaderForGET = !conf.useQueryStringForAccessToken
|
|
|
this._oauth2.get(conf.userInfoURL, accesstoken, (err, data) => {
|
|
|
if (err) {
|
|
|
return done(err)
|