Skip to content

Commit f3239b5

Browse files
committed
Update auth snippets.
1 parent b05cc5b commit f3239b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth/auth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function authCloudImplicit () {
2828
// Instantiates a client. If you don't specify credentials when constructing
2929
// the client, the client library will look for credentials in the
3030
// environment.
31-
const storage = Storage();
31+
const storage = new Storage();
3232

3333
// Makes an authenticated API request.
3434
storage
@@ -55,7 +55,7 @@ function authCloudExplicit () {
5555
// Instantiates a client. Explicitly use service account credentials by
5656
// specifying the private key file. All clients in google-cloud-node have this
5757
// helper, see https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/latest/guides/authentication
58-
const storage = Storage({
58+
const storage = new Storage({
5959
keyFilename: '/path/to/keyfile.json'
6060
});
6161

0 commit comments

Comments
 (0)