diff --git a/SignUpValidation/index.js b/SignUpValidation/index.js index 1a8b6d9..333ec80 100644 --- a/SignUpValidation/index.js +++ b/SignUpValidation/index.js @@ -5,7 +5,7 @@ module.exports = async function (context, req) { // parse Basic Auth username and password var header = req.headers["authorization"] || "", // get the header token = header.split(/\s+/).pop() || "", // and the encoded auth token - auth = new Buffer.from(token, "base64").toString(), // convert from base64 + auth = Buffer.from(token, "base64").toString(), // convert from base64 parts = auth.split(/:/), // split on colon username = parts[0], password = parts[1];