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
This commit is contained in:
committed by
Florent Vilmart
parent
85567310d4
commit
c83a787510
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user