GoogleCloudPlatform/gcloud-node — pull request #213 by stephenplusplus (2014-09-17 00:50:58+00:00)
Title: fix(connection): set token expiration date for GCE

A response from the GCE metadata server responds with data in a
different format from that of the GAPIToken() request. Instead of
looking for a property that doesn't exist `token_expires`, we now
calculate the expiration timestamp from `expires_in`.

For more, see [Authenticating from Google Compute Engine][auth].

[auth]:https://developers.google.com/compute/docs/authentication#applications

Fixes #212