Skip to content

Commit 897b8f2

Browse files
committed
docs: fix secret store code examples
1 parent 54dd7b8 commit 897b8f2

File tree

2 files changed

+4
-4
lines changed
  • documentation/docs/fastly:secret-store

2 files changed

+4
-4
lines changed

documentation/docs/fastly:secret-store/SecretStore/prototype/get.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ In this example we connect to an Secret Store named `'secrets'` and retrieve a s
5050
```js
5151
/// <reference types="@fastly/js-compute" />
5252

53-
import { SecretStoreEntry } from "fastly:secret-store";
53+
import { SecretStore } from "fastly:secret-store";
5454

5555
async function app(event) {
56-
const secrets = new SecretStoreEntry('secrets')
56+
const secrets = new SecretStore('secrets')
5757

5858
const catApiKey = await secrets.get('cat-api-key')
5959

documentation/docs/fastly:secret-store/SecretStoreEntry/prototype/plaintext.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ In this example we connect to an Secret Store named `'secrets'` and retrieve a s
3636
```js
3737
/// <reference types="@fastly/js-compute" />
3838

39-
import { SecretStoreEntry } from "fastly:secret-store";
39+
import { SecretStore } from "fastly:secret-store";
4040

4141
async function app(event) {
42-
const secrets = new SecretStoreEntry('secrets')
42+
const secrets = new SecretStore('secrets')
4343

4444
const catApiKey = await secrets.get('cat-api-key')
4545

0 commit comments

Comments
 (0)