Skip to content

Commit

Permalink
fix storage auth example in README (#3322)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihanzhen authored May 30, 2018
1 parent f90bbc7 commit cd9d226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
```
Expand Down

0 comments on commit cd9d226

Please sign in to comment.