@morojs/moro / MoroJSAuth
Function: MoroJSAuth()
MoroJSAuth(
config):Promise<{auth: (req) =>Promise<Session|null>;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 Auth.js implementation
Parameters
config
MoroJSAuthConfig
Returns
Promise<{ auth: (req) => Promise<Session | null>; handler: (req, res) => Promise<void>; }>