@morojs/moro / MoroJSAuth
Function: MoroJSAuth()
MoroJSAuth(
config):Promise<{auth: (req) =>Promise<null|Session>;handler: (req,res) =>Promise<void>; }>
Defined in: src/core/auth/morojs-adapter.ts:239
Main MoroJS Better Auth handler
This is the core function that integrates Better Auth with MoroJS Maintains API compatibility with the original Better Auth implementation
Parameters
config
MoroJSAuthConfig
Returns
Promise<{ auth: (req) => Promise<null | Session>; handler: (req, res) => Promise<void>; }>