Getting Started
Configuration
Configuration
Configure Boundary with your providers and authentication tokens.
Initializing the Client
The `Boundary` class is the entry point for the SDK. You need to initialize it with configuration for the providers you intend to use.
import { Boundary } from "boundary-sdk";
const boundary = new Boundary({
providers: {
github: {
auth: {
token: process.env.GITHUB_TOKEN,
},
// Optional: Configure retries specifically for GitHub
retry: {
maxRetries: 3,
}
},
stripe: {
auth: {
secretKey: process.env.STRIPE_SECRET_KEY,
}
}
},
// Global configuration
retry: {
maxRetries: 5,
initialDelay: 1000,
}
});Environment Variables
We recommend using environment variables directly in the constructor to keep secrets safe.
On this page
- Overview