Files
editor/apps/community/app/api/auth/[...all]/route.ts
T
2026-03-11 12:16:26 +01:00

12 lines
250 B
TypeScript

/**
* Better Auth API route handler
* Handles all /api/auth/* routes for authentication
*/
import { toNextJsHandler } from 'better-auth/next-js'
import { auth } from '@/lib/auth'
const { GET, POST } = toNextJsHandler(auth)
export { GET, POST }