v4.0.0
Introduction
Welcome to the Kotha Auth API. Our infrastructure allows you to securely authenticate users into your application using standard OpenID Connect (OIDC) protocols.
Quick Start
Integrate Kotha Auth into your frontend application using our official SDK in minutes.
npm install @kothatech/auth-jsThen, simply initialize the client with your credentials from the Developer Console:
import KothaAuth from '@kothatech/auth-js';
const auth = new KothaAuth({
clientId: 'app_1234567890',
redirectUri: 'http://localhost:3000/callback',
issuer: 'https://auth.kotha.im'
});
// Trigger login
await auth.loginWithRedirect();Features
- OAuth 2.0 / OIDC Compliant: Standardized JWT generation and validation.
- PKCE Protection: Built-in Proof Key for Code Exchange for SPAs and Mobile apps.
- Webhooks: Get real-time HTTP callbacks on
user.createdandsession.created. - Zero-Trust Architecture: Dedicated endpoints for key rotation and revocation.
- Payments Toolkit: Accept SSLCommerz securely using our open-source plugins.