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 8a4915b commit 35fe088Copy full SHA for 35fe088
src/Adapters/Auth/instagram.js
@@ -8,7 +8,8 @@ function validateAuthData(authData) {
8
const apiURL = authData.apiURL || defaultURL;
9
const path = `${apiURL}me?fields=id&access_token=${authData.access_token}`;
10
return httpsRequest.get(path).then(response => {
11
- if (response && response.id == authData.id) {
+ const user = response.data ? response.data : response
12
+ if (user && user.id == authData.id) {
13
return;
14
}
15
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'Instagram auth is invalid for this user.');
0 commit comments