- AuthService.validateRequest now returns AuthResult with both user and session - Call type includes session: SessionData | null - Handlers can access session metadata (createdAt, authMethod, etc.) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
14 lines
528 B
TypeScript
14 lines
528 B
TypeScript
// index.ts
|
|
//
|
|
// Barrel export for auth module.
|
|
//
|
|
// NOTE: authRoutes is NOT exported here to avoid circular dependency:
|
|
// services.ts → auth/index.ts → auth/routes.ts → services.ts
|
|
// Import authRoutes directly from "./auth/routes" instead.
|
|
|
|
export { hashPassword, verifyPassword } from "./password";
|
|
export { AuthService, type AuthResult } from "./service";
|
|
export { type AuthStore, InMemoryAuthStore } from "./store";
|
|
export { generateToken, hashToken, SESSION_COOKIE_NAME } from "./token";
|
|
export * from "./types";
|