@morojs/moro / createAuthMiddleware
Function: createAuthMiddleware()
createAuthMiddleware(
config): (app) =>Promise<void>
Defined in: src/core/auth/morojs-adapter.ts:440
MoroJS Auth middleware factory
This creates a MoroJS-compatible middleware for authentication Uses Better Auth internally while maintaining the same API
Parameters
config
MoroJSAuthConfig
Returns
(app) => Promise<void>