diff --git a/package.json b/package.json index 59a3043..5c352c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moduletrace/datasquirel", - "version": "3.1.4", + "version": "3.1.5", "description": "Cloud-based SQL data management tool", "main": "index.js", "bin": { diff --git a/users/user-auth.js b/users/user-auth.js index 3a0043e..671c084 100644 --- a/users/user-auth.js +++ b/users/user-auth.js @@ -144,7 +144,7 @@ function userAuth({ } const targetCsrfHeaderKey = Object.keys(finalRequest.headers) - .filter((k) => k.replace(/[^a-zA-Z0-9\-]/g, "")) + .map((k) => k.replace(/[^a-zA-Z0-9\-]/g, "")) .find((k) => k == userObject.csrf_k); if (csrfHeaderIsValue && !targetCsrfHeaderKey) {