From b882ceab420c24585eca892c8bf4b0d71740348e Mon Sep 17 00:00:00 2001 From: muerwre Date: Mon, 10 Dec 2018 13:07:43 +0700 Subject: [PATCH] auth: added backend debugging x2 --- backend/routes/auth/social/vk_iframe.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/routes/auth/social/vk_iframe.js b/backend/routes/auth/social/vk_iframe.js index c5f43da..1d776b0 100644 --- a/backend/routes/auth/social/vk_iframe.js +++ b/backend/routes/auth/social/vk_iframe.js @@ -20,6 +20,7 @@ const fetchUserData = async (req, res) => { res.send({ success: false, error: 'iframe auth failed' }); }); + console.log("RESULT!", result); const { data } = result; if (!data) { console.log('OOOPS!', result); @@ -32,6 +33,8 @@ const fetchUserData = async (req, res) => { module.exports = async (req, res) => { const { response } = await fetchUserData(req, res); + console.log('RESP', response); + const { first_name = '', last_name = '', photo = '', id = '' } = response[0];