@morojs/moro / requireAuth
Function: requireAuth()
requireAuth(
options?): (req,res,next) =>Promise<any>
Defined in: src/core/middleware/built-in/auth/helpers.ts:25
Auth Guard Middleware - Protects routes with authentication and authorization
Parameters
options?
AuthGuardOptions = {}
Returns
(req, res, next) => Promise<any>