L
L
LIVEj2020-04-28 14:25:46
Google
LIVEj, 2020-04-28 14:25:46

How to request data from google (node ​​JS) by google token?

I pass authorization by

passport.use(new GoogleStrategy({
clientID: '******',
clientSecret: '*******',
callbackURL: " site.ru/auth/google/callback "
},
function (accessToken, refreshToken, profile, done) {
return done(null,{token: accessToken});
}
));

How to request data from Google in reverse using a token?
I tried different libraries, they are either outdated modules, or not found

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LIVEj, 2020-04-28
@LIVEj

I barely found
https://www.npmjs.com/package/sauth-token
the only thing that confused me was that you just need a Google token to get the data. no additional
clientID:
clientSecret:
not needed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question