This setup guide is designed to help developers quickly integrate the OthentKMS library into their applications.

Installation

Run the following command in your project directory to install OthentKMS:

npm install @othent/kms

This command adds OthentKMS to your project's dependencies, making its functions available for use.

Basic Usage

Implementing OthentKMS is a simple two-step process. Additionally, its functions align with ArConnect's API, ensuring ease of use and consistency for those already familiar with ArConnect's naming conventions.

First, the required function must be imported in the desired file as follows:

import { connect } from "@othent/kms";

The next step is calling the function:

const handleConnect = async () => {
	  const res = await connect();
	  console.log("Connect,\\n", res);
};

<aside> ⚠️ Note: For optimal performance, it's recommended to disable any browser shields while utilizing functions from Othent.

</aside>

Upon successful execution, each function returns a result, which can be utilized to confirm the function's success or to initiate subsequent operations.

For comprehensive details on the functionality and outcomes of each function, refer to their specific documentation pages.