From 4784a1cd6b825e34a12f0edfb83364fccb7a0a63 Mon Sep 17 00:00:00 2001 From: arjunyel Date: Mon, 30 May 2022 00:21:48 -0500 Subject: [PATCH] Fix buffer call --- SignUpValidation/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];