The `easycodef-node` library, currently at version 1.0.4, serves as a utility for integrating Node.js applications with the CODEF API services. It abstracts away common complexities associated with API interactions, such as automatic handling of access token issuance and reuse (which are valid for one week), and provides functionalities for secure data exchange using RSA encryption. The library supports managing Connected IDs for end-user account authentication with various financial institutions (banks, cards, insurance, etc.), although this step is optional for APIs not requiring a Connected ID. While the release cadence appears to be low, indicating stability, the library is actively maintained with recent patch updates addressing bug fixes. Key differentiators include its comprehensive support for CODEF's authentication mechanisms and streamlined API request process, contrasting with direct API calls that would require manual token and encryption management. It ships with TypeScript types, facilitating development in typed environments.
npm install easycodef-nodeVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to initialize the EasyCodef client and explicitly request an access token from the CODEF API sandbox environment, setting necessary client information and the RSA public key for encryption.
Ensure `setClientInfoForDemo` and/or `setClientInfo` are called with valid credentials obtained from your CODEF account page. Use environment variables for sensitive data in production.
Obtain your RSA Public Key from the CODEF website and set it using `codef.setPublicKey(PUBLIC_KEY)`. Verify which API endpoints require encrypted parameters.
Refer to the CODEF developer guide to determine if a specific API product requires a Connected ID. Only implement Connected ID management where explicitly necessary.
Run `npm install easycodef-node` in your project directory. For TypeScript, ensure `moduleResolution` in `tsconfig.json` is set appropriately (e.g., `NodeNext` or `Bundler`).
Double-check your client credentials against your CODEF account page. Ensure you are using the correct set of keys for the `SERVICE_TYPE` you are requesting (e.g., `DEMO_CLIENT_ID` for `SERVICE_TYPE_SANDBOX` or `SERVICE_TYPE_DEMO`).
Ensure you are creating an instance using `const codef = new EasyCodef();` and that `EasyCodef` is correctly imported from `easycodef-node`.
Provide a valid RSA public key string to `codef.setPublicKey(PUBLIC_KEY)` before making API calls that involve encryption.
No dependency data recorded yet.