const { google } = require('googleapis');
getToken() {
const { ctx } = this;
const { code } = ctx.request.body;
const { client_id, client_secret, redirect_uri, response_type, scope } = ctx.app.config.oauth2Google;
const oauth2Client = new google.auth.OAuth2(client_id, client_secret, redirect_uri);
let data = await oauth2Client.getToken(code);
console.log('data:', data);
}