Initialization
Learn how to initialize the DotPassportClient.
Basic Initialization
import { DotPassportClient } from '@dotpassport/sdk';
const client = new DotPassportClient({
apiKey: 'live_your_api_key_here'
});Configuration Options
interface DotPassportConfig {
apiKey: string; // Required: Your API key
baseUrl?: string; // Optional: API base URL
}API Key
Your authentication key. Get it from the developer dashboard.
const client = new DotPassportClient({
apiKey: process.env.DOTPASSPORT_API_KEY!
});Base URL
Override the default API URL (useful for testing):
Environment-Specific Setup
Development
Production
Singleton Pattern
Create a single instance for your entire application:
Next Steps
Last updated
