Properly sets installationId on creating session with 3rd party auth

This commit is contained in:
Florent Vilmart
2016-03-20 10:50:34 -04:00
parent 24f0fffb41
commit 3603b82eac
4 changed files with 21 additions and 23 deletions

View File

@@ -97,7 +97,7 @@ function handleParseHeaders(req, res, next) {
// Client keys are not required in parse-server, but if any have been configured in the server, validate them
// to preserve original behavior.
let keys = ["clientKey", "javascriptKey", "dotNetKey", "restAPIKey"];
// We do it with mismatching keys to support no-keys config
var keyMismatch = keys.reduce(function(mismatch, key){
@@ -107,7 +107,7 @@ function handleParseHeaders(req, res, next) {
}
return mismatch;
}, 0);
// All keys mismatch
if (keyMismatch == keys.length) {
return invalidRequest(req, res);