Some background
I'm using Meteor as an application framework, and I use the accounts-google package to authenticate users. Using the accounts packages is very nice, because it handles all the dirty work of obtaining access tokens, refreshing them on expiry, etc. However, I wanted more profile information about the user than what gets populated in the Meteor.user() object.
With Facebook, I was able to easily load their client-side JS library and make graph api requests using Meteor.user().services.facebook.accessToken and following the documentation on the API:
https://developers.facebook.com/docs/javascript/reference/FB.api
My Problem
When referencing Google's JavaScript API, the documentation states that when making API calls, the request includes the access token automatically, but only when using gapi to handle the authorization requests.
This is not helpful when relying on a 3rd party authorization package (or when your application handles Google's authentication away from the client side).
Is there any way to use an existing access token in requests using the gapi.client library methods?