Add more tier matrix checks

This commit is contained in:
Owen
2026-02-09 19:52:28 -08:00
committed by Owen Schwartz
parent 055af927a5
commit 399a18b4fe
8 changed files with 35 additions and 13 deletions

View File

@@ -15,6 +15,7 @@ import config from "@server/lib/config";
import { decrypt } from "@server/lib/crypto";
import { build } from "@server/build";
import { isSubscribed } from "#dynamic/lib/isSubscribed";
import { tierMatrix } from "@server/lib/billing/tierMatrix";
const paramsSchema = z
.object({
@@ -112,7 +113,10 @@ export async function generateOidcUrl(
}
if (build === "saas") {
const subscribed = await isSubscribed(orgId);
const subscribed = await isSubscribed(
orgId,
tierMatrix.orgOidc
);
if (!subscribed) {
return next(
createHttpError(