The `zoominfo-api-auth-client` package provides an official client for authenticating with the Zoominfo API. It simplifies the process of obtaining access tokens required to interact with Zoominfo's various data services. Currently at version 1.0.1, this library offers two primary authentication flows: PKI (Public Key Infrastructure) using a client ID and private key, and basic authentication using a username and password. Unlike generic HTTP clients, it specifically handles the intricacies of Zoominfo's token generation endpoints, abstracting away the underlying OAuth 2.0 or proprietary authentication mechanisms. Its release cadence is not explicitly stated, but being at a `1.x.x` version, it's expected to be stable. Key differentiators include its direct integration with Zoominfo's specific authentication methods, reducing boilerplate for developers needing to access Zoominfo data without implementing custom authentication logic.
npm install zoominfo-api-auth-clientVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to obtain an access token using the PKI authentication method, utilizing environment variables for secure credential handling and including basic error logging.
Implement a token refresh mechanism in your application logic. Store the token and its expiration time, and request a new token when it's near expiration or when an API call returns an authentication error.
Store credentials in environment variables (e.g., `process.env.ZOOMINFO_PRIVATE_KEY`) or use a secrets management system. Access them at runtime, as demonstrated in the quickstart example.
Pin your dependency to the specific major version (e.g., `"zoominfo-api-auth-client": "^1.0.0"`) and carefully review release notes before upgrading to a new major version.
Ensure you are using `const authClient = require('zoominfo-api-auth-client');` and then accessing the function as a method: `authClient.getAccessTokenViaPKI(...)`.Double-check all authentication parameters for accuracy. Verify with Zoominfo support that your API credentials are valid and active. Ensure private key format is correct (e.g., not malformed).
Verify your internet connectivity. Check any local or network firewall rules that might be blocking outbound connections to the Zoominfo API. If you suspect an issue with the Zoominfo service itself, check their status page.
No dependency data recorded yet.