SDK Reference

Zero-dependency, strongly-typed TypeScript client library for AuthOS with comprehensive authentication and multi-tenant management capabilities.

AuthOS SDK

The AuthOS SDK (@drmhse/sso-sdk) is a zero-dependency, strongly-typed TypeScript client library for AuthOS. It provides a clean, programmatic interface for authentication and multi-tenant management.

Getting Started

SDK Modules

Authentication & Users

  • Auth Module - sso.auth.* - Login, registration, OAuth flows, and device authorization
  • User Module - sso.user.* - User profiles, linked identities, and MFA management

Organizations & Services

Platform Management

Integration Guides

Learn how to implement common authentication patterns:

Installation

npm install @drmhse/sso-sdk

Basic Usage

import { SsoClient } from '@drmhse/sso-sdk';

const sso = new SsoClient({
  baseURL: 'http://localhost:3000',
  token: localStorage.getItem('sso_access_token')
});

// Login with password
const tokens = await sso.auth.login({
  email: 'user@example.com',
  password: 'SecurePass123!'
});

// Update client with new token
sso.setAuthToken(tokens.access_token);

Pages