From 1e4ea244edda4a1f9fe207a6d2a1c108bec572e0 Mon Sep 17 00:00:00 2001 From: lucabertelli Date: Wed, 25 Oct 2023 16:47:01 +0200 Subject: [PATCH] fix(github): fix github enterprise authentication --- controllers/auth/read.auth.controller.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/controllers/auth/read.auth.controller.js b/controllers/auth/read.auth.controller.js index 8c618b8..b9738ae 100644 --- a/controllers/auth/read.auth.controller.js +++ b/controllers/auth/read.auth.controller.js @@ -134,8 +134,11 @@ router.get( ) .then((respToken) => respToken.json()) .then((jsonToken) => { + logger.json('user json print') + logger.debug(jsonToken) logger.debug('5') accessToken = jsonToken.access_token + logger.debug(accessToken) }) .catch((err) => console.log(err)) .then(() => { @@ -148,6 +151,8 @@ router.get( }) .then((respUser) => respUser.json()) .then((json) => { + logger.json('user json print') + logger.debug(json) logger.debug(clientSecret) userInfo.id = json.id userInfo.displayName = json.name