Skip to content

Commit

Permalink
docs: improve the compute sample in the README (#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
grant authored and JustinBeckwith committed Jan 10, 2019
1 parent 47056e9 commit 7e07d11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -236,8 +236,10 @@ For example, a JWT auth client will be created when your code is running on your
The code below shows how to retrieve a default credential type, depending upon the runtime environment. The createScopedRequired must be called to determine when you need to pass in the scopes manually, and when they have been set for you automatically based on the configured runtime environment.

```js
async function main () {
const {google} = require('googleapis');
const compute = google.compute('v1');

async function main () {
// This method looks for the GCLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS
// environment variables.
const auth = await google.auth.getClient({
Expand Down

0 comments on commit 7e07d11

Please sign in to comment.