diff --git a/pages/api/authGoogle.js b/pages/api/authGoogle.js index 8fb0671a..a5e568d3 100644 --- a/pages/api/authGoogle.js +++ b/pages/api/authGoogle.js @@ -12,12 +12,15 @@ const oAuth2Client = new OAuth2Client( // exchanges Auth Code for Tokens async function getTokens(code) { const { tokens } = await oAuth2Client.getToken(code); - + // eslint-disable-next-line no-console + console.log("TOKENS:", tokens); return tokens; } export default async function handler(req, res) { try { + // eslint-disable-next-line no-console + console.log("CODE:", req.body.code); const { id_token: idToken } = await getTokens(req.body.code); res.status(200).json({ idToken }); } catch (err) {