- default(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>, next: NextFunction): Promise<void | Response<any, Record<string, any>>>
-
Parameters
-
req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
-
res: Response<any, Record<string, any>>
-
next: NextFunction
Returns Promise<void | Response<any, Record<string, any>>>
This function will decode user from
authorizationheader and add it tores.localsasres.locals.userAuthor
aayushchugh