mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-13 14:29:35 +00:00
23 lines
489 B
TypeScript
23 lines
489 B
TypeScript
import { NextFunction, Request, Response } from "express";
|
|
|
|
/**
|
|
* Validate if organization hosting meets license requirements to
|
|
* access a license-specific route.
|
|
* @param {Object} obj
|
|
* @param {String[]} obj.acceptedTiers
|
|
*/
|
|
const requireLicenseAuth = ({
|
|
acceptedTiers,
|
|
}: {
|
|
acceptedTiers: string[];
|
|
}) => {
|
|
return async (req: Request, res: Response, next: NextFunction) => {
|
|
try {
|
|
|
|
} catch (err) {
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
export default requireLicenseAuth; |