Getting started
Learn how to handle secrets and sensitive data
Secrets should not be stored in the extension code but should be handled via the extension settings.
Imagine you are building an extension with a 3rd party. As is common in many applications, your extension might require authentication with the third-party API. However, you want to ensure that users who install the extension can easily configure their own API key without hardcoding it into the extension's code or relying on environment variables.
To achieve this, you can use the extension settings to provide a user-friendly way for extension users to set their API key during the installation process.
01
The extension settings are accessible from within any part of your extension's code (e.g. when writing a custom action), enabling you to retrieve the user's provided value for the secret/setting.
01