You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In most cases, you'll want to get your configuration object synchronously before your application starts up. But, if you prefer, you can also get your secrets asynchronously like this.
67
67
68
68
```js
69
-
const {config} =require('@jwerre/secrets');
69
+
import {config} from'@jwerre/secrets';
70
70
71
71
( asyncfunction(){
72
72
@@ -126,7 +126,7 @@ If you plan on using any of the higher level methods or any of the CLI tools in
126
126
You may want to access the higher level API which can be done like this:
127
127
128
128
```js
129
-
const { Secrets } =require('@jwerre/secrets');
129
+
import { Secrets } from'@jwerre/secrets';
130
130
constsecret=newSecrets(options);
131
131
constconfig=secrets.configSync();
132
132
```
@@ -233,4 +233,4 @@ npm install
233
233
npm test
234
234
```
235
235
236
-
NOTE: You must have access to an AWS account with the full access to Secret Manager [additional permissions](https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awssecretsmanager.html).
236
+
NOTE: You must have access to an AWS account with the full access to Secret Manager [additional permissions](https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awssecretsmanager.html).
0 commit comments