1.0.3 • Published 7 months ago

authwave-sdk v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Authwave SDK

An intuitive library designed to simplify the integration of authentication services into web applications.

Table of Contents

Installation

Install the SDK using NPM:

npm install authwave-sdk

Usage

import { AuthService } from "authwave-sdk";

const authService = new AuthService("<your-project-id>", "<your-project-key>");

// Using async/await
const handleCreateAccount = async () => {
  try {
    const response = await authService.createAccount(username, email, password);
    console.log("Account created successfully:", response);
  } catch (error) {
    console.error("Error creating account:", error);
  }
};

// Using promises
authService
  .createAccount(username, email, password)
  .then((response) => {
    console.log("Account created successfully:", response);
  })
  .catch((error) => {
    console.error("Error creating account:", error);
  });

Head over to the SDK Documentation for more information on the offered methods in the AuthService class.

IMPORTANT LINKS


DEVELOPER

This project is created by Abhijeet Gautam. You can find more about the developer and connect on the following platforms:


1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

8 months ago

1.0.0

8 months ago