diff --git a/src/Adapters/Auth/apple.js b/src/Adapters/Auth/apple.js index d27d5ace..64df6a50 100644 --- a/src/Adapters/Auth/apple.js +++ b/src/Adapters/Auth/apple.js @@ -9,7 +9,7 @@ function validateAuthData(authData, authOptions) { console.log("going to validate for apple"); console.log(authData); var necessaries = ["timestamp", "salt", "id", "bundleId", "signature", "publicKeyUrl"]; - for (var n in necessaries) { + for (var n of necessaries) { var necessary = necessaries[n]; if (!(necessary in authData)) { error("Auth data does not have property " + necessary);