Moved the proper facebook auth data validation

This commit is contained in:
Florent Vilmart
2016-02-18 08:05:08 -05:00
parent b1ab388c96
commit d42b08055b
2 changed files with 2 additions and 59 deletions

View File

@@ -16,7 +16,8 @@ function validateAuthData(authData) {
}
// Returns a promise that fulfills iff this app id is valid.
function validateAppId(appIds, access_token) {
function validateAppId(appIds, authData) {
var access_token = authData.access_token;
if (!appIds.length) {
throw new Parse.Error(
Parse.Error.OBJECT_NOT_FOUND,