@aws-sdk/token-providers 3.382.0 → 3.385.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,7 +15,7 @@ import { fromStatic } from "@aws-sdk/token-providers"
15
15
  const token = { token: "TOKEN" };
16
16
  const staticTokenProvider = fromStatic(token);
17
17
 
18
- cont staticToken = await staticTokenProvider(); // returns { token: "TOKEN" }
18
+ const staticToken = await staticTokenProvider(); // returns { token: "TOKEN" }
19
19
  ```
20
20
 
21
21
  ## SSO Token Provider
@@ -24,7 +24,7 @@ cont staticToken = await staticTokenProvider(); // returns { token: "TOKEN" }
24
24
  import { fromSso } from "@aws-sdk/token-providers"
25
25
 
26
26
  // returns token from SSO token cache or ssoOidc.createToken() call.
27
- cont ssoToken = await fromSso();
27
+ const ssoToken = await fromSso();
28
28
  ```
29
29
 
30
30
  ## Token Provider Chain
@@ -33,7 +33,7 @@ cont ssoToken = await fromSso();
33
33
  import { nodeProvider } from "@aws-sdk/token-providers"
34
34
 
35
35
  // returns token from default providers.
36
- cont token = await nodeProvider();
36
+ const token = await nodeProvider();
37
37
  ```
38
38
 
39
39
  [http-bearer-auth-trait]: https://smithy.io/2.0/spec/authentication-traits.html#smithy-api-httpbearerauth-trait