You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here are some ways we are opening different clients for our Google integrations
const client = new google.auth.JWT(keys.client_email, null, keys.private_key, [
'https://www.googleapis.com/auth/spreadsheets',
]);
and
const oauth2Client = new google.auth.OAuth2(keys.client_id, keys.client_secret, keys.redirect_uris[0]);
Particularily OAuth2 vs JWT
Could you dig around the Google API docs and see if this makes a difference for different integrations (google.mail, google.sheets)? If not I would probably like to work towards building a client factory that just makes all of these in one place.
The text was updated successfully, but these errors were encountered:
It actually looks like you can use OAuth2 for everything, and JWT for a subset of those things (with the benefit of performance avoiding an extra API call)
Development Task 🔧
What? ❓
Here are some ways we are opening different clients for our Google integrations
and
Particularily OAuth2 vs JWT
Could you dig around the Google API docs and see if this makes a difference for different integrations (google.mail, google.sheets)? If not I would probably like to work towards building a client factory that just makes all of these in one place.
The text was updated successfully, but these errors were encountered: