Skip to content

Commit

Permalink
feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
d4mr committed Feb 8, 2025
1 parent 7565b59 commit 9a945db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/routes/system/health.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ type EngineFeature =
| "CONTRACT_SUBSCRIPTIONS"
| "IP_ALLOWLIST"
| "HETEROGENEOUS_WALLET_TYPES"
| "SMART_BACKEND_WALLETS";
| "SMART_BACKEND_WALLETS"
| "CREDENTIALS";

const ReplySchemaOk = Type.Object({
status: Type.String(),
Expand All @@ -25,6 +26,7 @@ const ReplySchemaOk = Type.Object({
Type.Literal("IP_ALLOWLIST"),
Type.Literal("HETEROGENEOUS_WALLET_TYPES"),
Type.Literal("SMART_BACKEND_WALLETS"),
Type.Literal("CREDENTIALS"),
]),
),
clientId: Type.String(),
Expand Down Expand Up @@ -89,6 +91,7 @@ const getFeatures = (): EngineFeature[] => {
"HETEROGENEOUS_WALLET_TYPES",
"CONTRACT_SUBSCRIPTIONS",
"SMART_BACKEND_WALLETS",
"CREDENTIALS",
];

if (env.ENABLE_KEYPAIR_AUTH) features.push("KEYPAIR_AUTH");
Expand Down

0 comments on commit 9a945db

Please sign in to comment.