From c5fa8067ec9c63ef436425a55c3bb4c5bcda2ceb Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 22 Dec 2020 01:21:56 -0500 Subject: [PATCH] parse response as json --- lib/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.js b/lib/index.js index 2119d3b..168d483 100644 --- a/lib/index.js +++ b/lib/index.js @@ -106,6 +106,7 @@ async function addEmail(req) { headers: { Authorization: "Bearer " + req.jwt, }, + json: true, }); var result = (resp.body && resp.body.result) || resp.body || {}; console.log("authz-email:", result);