File tree 3 files changed +6
-1
lines changed
packages/credential-providers
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,8 @@ See [`fromSSO()`](#fromsso) fro more information
505
505
506
506
## ` fromEnv() `
507
507
508
- - Not available in browser & native apps
508
+ - Not available in browser & native apps unless your code or bundler populates the
509
+ ` process.env ` global object.
509
510
510
511
``` javascript
511
512
import { fromEnv } from " @aws-sdk/credential-providers" ; // ES6 import
Original file line number Diff line number Diff line change @@ -24,5 +24,8 @@ import { AwsCredentialIdentityProvider } from "@smithy/types";
24
24
* credentials: fromEnv(),
25
25
* });
26
26
* ```
27
+ *
28
+ * To use this in non-Node.js environments such as a browser, your code or
29
+ * build system must populate the `process.env` global object.
27
30
*/
28
31
export const fromEnv = ( init ?: FromEnvInit ) : AwsCredentialIdentityProvider => _fromEnv ( init ) ;
Original file line number Diff line number Diff line change @@ -2,5 +2,6 @@ export * from "./fromCognitoIdentity";
2
2
export * from "./fromCognitoIdentityPool" ;
3
3
export { fromHttp } from "@aws-sdk/credential-provider-http" ;
4
4
export type { FromHttpOptions , HttpProviderCredentials } from "@aws-sdk/credential-provider-http" ;
5
+ export * from "./fromEnv" ;
5
6
export * from "./fromTemporaryCredentials" ;
6
7
export * from "./fromWebToken" ;
You can’t perform that action at this time.
0 commit comments