From 73b498c609ceae40e9290bd391914d883a57ebb4 Mon Sep 17 00:00:00 2001 From: Hanzhen Yi Date: Wed, 30 May 2018 10:20:30 -0700 Subject: [PATCH] fix storage auth example in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a8be64404ce..ff04769c4f20 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,7 @@ Storage storage = StorageOptions.getDefaultInstance().getService(); case, the access token will not be automatically refreshed): ```java Storage storage = StorageOptions.newBuilder() - .setCredentials(new GoogleCredentials(new AccessToken(accessToken, expirationTime))) + .setCredentials(GoogleCredentials.create(new AccessToken(accessToken, expirationTime))) .build() .getService(); ```