From c83a787510ec358249ab31b177715892529046b9 Mon Sep 17 00:00:00 2001 From: jonas-db Date: Fri, 25 Nov 2016 20:05:41 +0100 Subject: [PATCH] Use the id of the account instead of the application id (#3108) * Use the id of the account instead of the application id Fix for issue: https://github.com/ParsePlatform/parse-server/issues/3106 * Update twitter.js * Update twitter.js --- src/authDataManager/twitter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authDataManager/twitter.js b/src/authDataManager/twitter.js index 8bd7cd33..28fcdb9a 100644 --- a/src/authDataManager/twitter.js +++ b/src/authDataManager/twitter.js @@ -12,7 +12,7 @@ function validateAuthData(authData, options) { client.auth_token_secret = authData.auth_token_secret; return client.get("/1.1/account/verify_credentials.json").then((data) => { - if (data && data.id == authData.id) { + if (data && data.id_str == ''+authData.id) { return; } throw new Parse.Error(