{"success":true,"data":{"service":"trackfit-server-auth","version":"1.0.0","environment":"production","status":"operational","description":"Enterprise-grade authentication server with Better Auth and Email OTP","endpoints":{"authentication":{"description":"Better Auth integration endpoints","routes":{"Health Check":"GET /api/auth/ok","Current Session":"GET /api/auth/session","Sign Out":"POST /api/auth/sign-out","Send OTP":"POST /api/auth/email-otp/send-verification-otp","Sign In with OTP":"POST /api/auth/sign-in/email-otp","Verify Email OTP":"POST /api/auth/email-otp/verify-email"}},"session":{"description":"Session management endpoints","routes":{"Check Session":"GET /api/session/check","User Information":"GET /api/session/me"}},"system":{"description":"System monitoring and information","routes":{"Health Check":"GET /health","API Information":"GET /","API Documentation":"GET /api-docs"}},"development":{"description":"Development utilities (non-production only)","routes":{"Retrieve OTP":"GET /api/dev/otp?email=user@example.com&type=sign-in"}}},"examples":{"sendOTP":{"method":"POST","url":"/api/auth/email-otp/send-verification-otp","headers":{"Content-Type":"application/json"},"body":{"email":"user@example.com","type":"sign-in"}},"signIn":{"method":"POST","url":"/api/auth/sign-in/email-otp","headers":{"Content-Type":"application/json"},"body":{"email":"user@example.com","otp":"123456"}},"checkSession":{"method":"GET","url":"/api/session/check","headers":{"Cookie":"better-auth.session_token=..."}}},"architecture":{"framework":"Express.js with TypeScript","authentication":"Better Auth with Email OTP","database":"PostgreSQL","emailProvider":"Resend","logging":"Structured JSON logging","errorHandling":"Enterprise-grade error management"}},"meta":{"timestamp":"2026-08-17T11:35:13.626Z","requestId":"system_1786966513626_eaqhdwsqb","version":"1.0.0","environment":"production"}}