I want to do Gmail authentication with access token. I am passing values like ,
const options = {
method: 'GET',
uri: 'https://www.googleapis.com/auth/plus.me',
qs: {
access_token: req.body.gmailToken,
fields: 'id,name,first_name,last_name,email,picture'
}
};
But I am not able to get auth data from gmail.
Is there another way to get auth data from Gmail Only by passing accessToken?