mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 01:05:40 +00:00
23 lines
488 B
TypeScript
23 lines
488 B
TypeScript
import { Request, Response, NextFunction } 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; |