Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions docusaurus/docs/cms/features/api-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,16 @@ Changing the salt invalidates all the existing API tokens.

#### Ensuring API tokens are visible in the admin panel

To allow persistent visibility of API tokens in the admin panel, an encryption key must be provided in [your `/config/admin` file](/cms/configurations/admin-panel) under `apiToken.secrets.encryptionKey`:
To allow persistent visibility of API tokens in the admin panel, an encryption key must be provided in [your `/config/admin` file](/cms/configurations/admin-panel) under `secrets.encryptionKey`:

<Tabs groupId="js-ts">
<TabItem label="JavaScript" value="js">

```js title="/config/admin.js"
module.exports = ({ env }) => ({
// other config parameters
apiToken: {
secrets: {
encryptionKey: env('ENCRYPTION_KEY'),
},
secrets: {
encryptionKey: env('ENCRYPTION_KEY'),
}
});
```
Expand All @@ -136,10 +134,8 @@ module.exports = ({ env }) => ({
```js title="/config/admin.ts"
export default ({ env }) => ({
// other config parameters
apiToken: {
secrets: {
encryptionKey: env('ENCRYPTION_KEY'),
},
secrets: {
encryptionKey: env('ENCRYPTION_KEY'),
}
});
```
Expand Down