Authentication
Email, phone, passkeys, MFA, social sign-in, and SSO policy controls per project.
Ship project-scoped sign-in, sessions, tokens, webhooks, and SDK integrations without recreating auth tables for every app.
Email, phone, passkeys, MFA, social sign-in, and SSO policy controls per project.
Separate dev and production environments with strict redirect and origin controls.
Create auth projects once and reuse them across Smart Hive apps, client projects, and public products.
React, Next.js, Expo, Tauri, and backend SDKs built around one Smart Hive contract.
Short-lived tokens, rotating refresh sessions, secret versioning, revocation, and audit history.
Signed delivery, event subscriptions, retry history, and endpoint health for product automation.
import { AuthProvider, useAuth } from "@smarthivelabs-devs/auth-react";
<AuthProvider config={{ projectId, publishableKey, baseUrl }}>
<App />
</AuthProvider>import { initAuth } from "@smarthivelabs-devs/auth-react";
const auth = initAuth({
projectId,
publishableKey,
baseUrl
});import { requireAuth } from "@smarthivelabs-devs/auth-server";
app.get("/api/me", requireAuth(config), (req, res) => {
res.json({ userId: req.auth.userId });
});