Hello.
I have used node adwords api to manage adwords with nodejs.
So to get authenticated user first, I have done like this.
This is my code:
...
app = express();
let auth = new AdwordsAuth({
client_id: *****,
client_secret: *****,
);
app.get('/account_auth'. (req, res) => {
auth.getAccessTokenFromAuthorizationCode(req.query.code, (err. tokens) => {
if(err) {
} else {
if(tokens) {
var user = new AdwordsUser({
.....
access_token: tokens.access_token,
refresh_token: tokens.refresh_token
});
}
}
});
});
So now to get access token, in browser I need to input url as auth,generateAuthenticationUrl() and then select google account even I had already logined.
But I want to get this access_token without user's hand authorization.
I have tried to authenticate with oauth2 using passport, but still select google account in the login form.
Can you help me?
Thanks.