Universal SDK

Build Authentication with AuthOS

Ship in minutes with our strongly-typed SDK. Built for React, Vue, Node.js, and modern Web Standards.

Read React Guide
import { useAuthOS, SignIn } from '@drmhse/authos-react';function App() {  const { isAuthenticated } = useAuthOS();  if (!isAuthenticated) {    return <SignIn providers={['github', 'google']} />;  }  return <Dashboard />;}
NORMAL APP.TSX Top
$ npm install @drmhse/authos-react
$ npm run dev
Ready in 240ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
<script setup>import { useAuthOS, SignIn } from '@drmhse/authos-vue';const { isAuthenticated } = useAuthOS();</script><template>  <SignIn v-if="!isAuthenticated" :providers="['github', 'google']" />  <Dashboard v-else /></template>
NORMAL APP.VUE Top
$ npm install @drmhse/authos-vue
$ npm run dev
Vite server started
➜ Local: http://localhost:3000/
import { createAuthMiddleware } from '@drmhse/authos-node/express';import express from 'express';const { requireAuth } = createAuthMiddleware({  baseURL: 'https://sso.example.com'});app.get('/private', requireAuth(), (req, res) => {  res.json({ user: req.auth.claims });});
NORMAL SERVER.TS Top
$ npm install @drmhse/authos-node
$ node server.ts
Auth middleware initialized
Listening on port 8080...
import { SsoClient } from '@drmhse/sso-sdk';const sso = new SsoClient({  baseURL: 'https://sso.example.com'});// Register user scoped to your org + serviceawait sso.auth.register({  email, password,  org_slug: 'acme-corp',  service_slug: 'main-app'});
NORMAL MAIN.TS Top
$ npm install @drmhse/sso-sdk
$ ts-node main.ts
Registered user@example.com
User scoped to acme-corp/main-app

The complete, self-hosted identity platform for B2B and B2C.
Universal SDK for React, Vue, and Node.js.

Features

Everything you need, nothing you don't

Built for B2B SaaS from day one.

Multi-tenant Native

Organizations, teams, and role-based access built in. Not a bolt-on.

Self-Hostable

Your infrastructure, your data. Deploy anywhere: on-prem, VPC, or cloud.

Enterprise SSO

SAML 2.0 and OIDC federation. Let customers bring their own IdP.

Passkeys & MFA

WebAuthn, TOTP, and email verification. Phishing-resistant auth.

Fine-grained Permissions

Google Zanzibar-style ReBAC. Define who can do what, on what resource.

Observable

Prometheus metrics, structured logs, and audit trails. Debug in minutes.