Installation
The Wacht backend SDK is published on NPM as@wacht/backend. It is designed to be installed in your secure server environments, not bundled into frontend client applications.
Environment Variables
The backend SDK requires your Secret API Key to interact with the Wacht API, and your Public Signing Key to securely verify session tokens locally without making network requests. Add the following to your environment configuration (e.g., your.env file):
.env
[!WARNING]
Your WACHT_API_KEY provides privileged access to your entire workspace. Never expose this key to the browser or commit it to version control.
Retrieve these credentials from the API Keys section of your Wacht Dashboard.