Official SDKs

Language-specific SDKs for seamless integration

JavaScript/TypeScript

Qualified TypeScript auth-session client for JavaScript and Node.js

Installation

npm install @hyperbridgedigital/auth-sdk

Features:

  • •Typed sign-in and invitation-based sign-up
  • •MFA challenge completion
  • •Session refresh and restore
  • •ESM and CommonJS exports
  • •Explicit tenant selection

Python

Python SDK for backend applications

Installation

pip install kynetra-auth

Features:

  • •Async support
  • •Type hints
  • •Django integration
  • •Flask support
  • •Sync/async APIs

Go

Go SDK for high-performance backends

Installation

go get github.com/kynetraauth/go-sdk

Features:

  • •Concurrent requests
  • •Context support
  • •Error handling
  • •Middleware support
  • •Production-ready

Java

Java SDK for enterprise applications

Installation

Maven: Add to pom.xml

Features:

  • •Spring Boot integration
  • •Async operations
  • •Custom serialization
  • •Error handling
  • •Gradle support

Quick Examples

JavaScript/TypeScript

import { KynetraAuth } from '@hyperbridgedigital/auth-sdk';

const auth = new KynetraAuth({
  apiUrl: 'https://auth.example.com/api',
  clientId: 'YOUR_CLIENT_ID',
  tenantId: 'YOUR_TENANT_ID',
});

await auth.signIn({ email: 'user@example.com', password: 'your-password' });
const user = await auth.user.get();

Python

from kynetra_auth import Kynetra

kynetra = Kynetra(
  project_id='proj_xxx',
  domain='auth.example.com'
)

# Sign in
result = kynetra.auth.sign_in(
  email='user@example.com',
  password='password'
)
token = result['token']

Go

import "github.com/kynetraauth/go-sdk"

client := kynetra.NewClient(
  "proj_xxx",
  "auth.example.com",
)

// Sign in
resp, err := client.Auth.SignIn(ctx,
  &kynetra.SignInRequest{
    Email: "user@example.com",
    Password: "password",
  },
)

Java

KynetraClient client =
  KynetraClient.builder()
    .projectId("proj_xxx")
    .domain("auth.example.com")
    .build();

SignInResponse response =
  client.auth().signIn(
    SignInRequest.builder()
      .email("user@example.com")
      .password("password")
      .build()
  );