Skip to content

Commit 5791130

Browse files
committed
Fix for authenticating with instagram
1 parent 7f47b04 commit 5791130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Auth/instagram.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function validateAuthData(authData) {
88
const apiURL = authData.apiURL || defaultURL;
99
const path = `${apiURL}me?fields=id&access_token=${authData.access_token}`;
1010
return httpsRequest.get(path).then(response => {
11-
if (response && response.data && response.data.id == authData.id) {
11+
if (response && response.id == authData.id) {
1212
return;
1313
}
1414
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'Instagram auth is invalid for this user.');

0 commit comments

Comments
 (0)