<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`SecretStorage`](SecretStorage) › [`getSecret`](SecretStorage/getSecret)
## SecretStorage.getSecret() method
Gets a secret from storage
**Signature:**
```typescript
getSecret(id: string): string | null;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>id</code> | <code>string</code> | The secret ID |
**Returns:**
`string | null`
The secret value or null if not found
1.11.4