Skip to content

Commit c83a787

Browse files
jonas-dbflovilmart
authored andcommitted
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: #3106 * Update twitter.js * Update twitter.js
1 parent 8556731 commit c83a787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/authDataManager/twitter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function validateAuthData(authData, options) {
1212
client.auth_token_secret = authData.auth_token_secret;
1313

1414
return client.get("/1.1/account/verify_credentials.json").then((data) => {
15-
if (data && data.id == authData.id) {
15+
if (data && data.id_str == ''+authData.id) {
1616
return;
1717
}
1818
throw new Parse.Error(

0 commit comments

Comments
 (0)