Skip to content

Commit cd9d226

Browse files
authored
fix storage auth example in README (#3322)
1 parent f90bbc7 commit cd9d226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Storage storage = StorageOptions.getDefaultInstance().getService();
165165
case, the access token will not be automatically refreshed):
166166
```java
167167
Storage storage = StorageOptions.newBuilder()
168-
.setCredentials(new GoogleCredentials(new AccessToken(accessToken, expirationTime)))
168+
.setCredentials(GoogleCredentials.create(new AccessToken(accessToken, expirationTime)))
169169
.build()
170170
.getService();
171171
```

0 commit comments

Comments
 (0)