const response = await oAuth2Client.getToken(code); const userInfo = JSON.parse(Buffer.from(response.tokens.id_token.split('.')[1], 'base64').toString()); console.log(userInfo);