Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking for missing cropId in getOAuthAccessToken #153

Open
MaleWeb opened this issue Dec 17, 2021 · 0 comments
Open

Checking for missing cropId in getOAuthAccessToken #153

MaleWeb opened this issue Dec 17, 2021 · 0 comments

Comments

@MaleWeb
Copy link

MaleWeb commented Dec 17, 2021

For instance, withings doesn't return an cropId in the getOAuthAccessToken,Here is a sample response from Dingtalk.
this._oauth2.getOAuthAccessToken = function(code, params, callback) { var self = this; urllib.request( this._persistentTokenURL, { headers: { "Content-Type": "application/json" }, method: "POST", dataType: "json", data: { clientId: self._clientId, clientSecret: self._clientSecret, code: code, grantType: "authorization_code" } }, function(err, data, res) { if (err) return callback(err); var accessToken = data.accessToken; var refreshToken = data.refreshToken; // data.cropId??无法传递 if (!accessToken || !refreshToken) return callback(new Error("refreshToken failed")); callback(null, accessToken, refreshToken,data); } ); };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant