Skip to content

Commit 7905263

Browse files
authored
docs(credential-providers): add missing brackets for fromTemporaryCredentials (#3462)
1 parent 559cec7 commit 7905263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/credential-providers/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ import { fromTemporaryCredentials } from "@aws-sdk/credential-providers"; // ES6
115115

116116
const client = new FooClient({
117117
region,
118-
credentials: fromTemporaryCredentials(
118+
credentials: fromTemporaryCredentials({
119119
// Optional. The master credentials used to get and refresh temporary credentials from AWS STS.
120120
// If skipped, it uses the default credential resolved by internal STS client.
121121
masterCredentials: fromTemporaryCredentials({
@@ -139,7 +139,7 @@ const client = new FooClient({
139139
mfaCodeProvider: async mfaSerial => {
140140
return "token"
141141
}
142-
),
142+
}),
143143
});
144144
```
145145

0 commit comments

Comments
 (0)