1.0.3 • Published 7 months ago
authwave-sdk v1.0.3
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
- Authwave Documentation
- Authwave SDK Source Code
- Authwave Backend Source Code
- Authwave Admin Console
- Authwave Website
DEVELOPER
This project is created by Abhijeet Gautam. You can find more about the developer and connect on the following platforms: