SecretStorage.setSecret method
SecretStorage › setSecret
Official
Sets a secret in the storage.Signature:
setSecret(id: string, secret: string): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| id | string | Lowercase alphanumeric ID with optional dashes |
| secret | string | The secret value to store |
Returns: void
Since: 1.11.4