context.getSecret('key') - get previously stored secret
| argument | Type | Description |
|---|---|---|
| key | string |
Return value - Promise
Use this method to retrieve secrets previously stored with ctx.storeSecret. It automatically handles decryption before returning the value.
const secret = await context.getSecret('secret_key')