@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:223
Main MoroJS Auth.js handler
This is the core function that integrates Auth.js with MoroJS
Parameters
config
MoroJSAuthConfig
Returns
Promise<{ auth: (req) => Promise<null | Session>; handler: (req, res) => Promise<void>; }>