openclaw/saas/src/auth/index.ts
Claude 727d2bf1f9
feat(saas): add Sprint 1 core infrastructure for SaaS platform
- Add PostgreSQL database schema (users, subscriptions, tenants, sessions)
- Implement authentication service with Argon2id password hashing
- Add JWT-based session management with access/refresh tokens
- Create REST API routes (auth, agent, usage, billing)
- Add encryption utilities (AES-256-GCM) and Vault integration
- Set up Docker Compose development environment
- Add Hono-based API server with middleware

This establishes the foundation for transforming moltbot into a
multi-tenant SaaS platform with secure authentication and
per-tenant encryption.

https://claude.ai/code/session_01UzVUSnxfEecZE8Yes3Zqw9
2026-01-30 00:34:53 +00:00

18 lines
517 B
TypeScript

export { AuthService } from "./service.js";
export type { AuthResult, SignupInput, LoginInput } from "./service.js";
export { authMiddleware, optionalAuthMiddleware, requireTier } from "./middleware.js";
export {
generateAccessToken,
generateRefreshToken,
verifyAccessToken,
verifyRefreshToken,
generateSecureToken,
hashToken,
} from "./jwt.js";
export type { AccessTokenPayload, RefreshTokenPayload } from "./jwt.js";
export {
hashPassword,
verifyPassword,
validatePasswordStrength,
} from "./password.js";