11 lines
496 B
TypeScript
11 lines
496 B
TypeScript
import { Request, Response, NextFunction } from 'express';
|
|
/**
|
|
* Loads the company record and validates it exists.
|
|
* Must be applied after `requireCompanyAuth`.
|
|
*
|
|
* Guarantees on success:
|
|
* req.company — full Company record
|
|
* req.companyId — string id (already set by requireCompanyAuth)
|
|
*/
|
|
export declare function requireTenant(req: Request, res: Response, next: NextFunction): Promise<Response<any, Record<string, any>> | undefined>;
|
|
//# sourceMappingURL=requireTenant.d.ts.map
|