context.storeSecret('key', 'value') - storing secret for current user
| argument | Type | Description |
|---|---|---|
| key | string | |
| value | string |
Return value - Promise
When storing a secret, the system will generate a unique encryption key for the user (if one doesn’t already exist), encrypt the data, and store it in the browser’s local storage — but only under your integration’s domain, not the host platform's domain.
await context.storeSecret('secret_key', 'secret value')