Authentication
Authenticate your backend with Wistfare API keys today and prepare for future identity-provider flows.
Authentication in Wistfare starts with API keys. Every SDK uses the same wf_test_* and wf_live_* key model, and the safest pattern is always server-to-server authentication.
Authenticate a Client
const wf = new Wistfare({
apiKey: process.env.WISTFARE_API_KEY!,
});wf = Wistfare(api_key="wf_live_xxx")client := core.New("wf_live_xxx")final wf = Wistfare(apiKey: 'wf_live_xxx');let client = Wistfare::new("wf_live_xxx")?;let client = try Wistfare(apiKey: "wf_live_xxx")val client = Wistfare(WistfareConfig(apiKey = "wf_live_xxx"))var client = new WistfareClient(new WistfareOptions
{
ApiKey = Environment.GetEnvironmentVariable("WISTFARE_API_KEY")!,
});