From 6a6e3d72de2d577dcf8f072a2e1246a874d1aac8 Mon Sep 17 00:00:00 2001 From: Matt Cleinman <9295855+mcleinman@users.noreply.github.com> Date: Mon, 23 Dec 2024 13:13:32 -0800 Subject: [PATCH] VPN-6320 change default in app auth --- src/feature/featurelistcallback.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/feature/featurelistcallback.h b/src/feature/featurelistcallback.h index fa2097fb4d..ece476e297 100644 --- a/src/feature/featurelistcallback.h +++ b/src/feature/featurelistcallback.h @@ -94,17 +94,14 @@ bool FeatureCallback_captivePortal() { } bool FeatureCallback_inAppAuthentication() { -#if defined(MZ_WASM) - return true; +#if defined(MZ_WINDOWS) + // Windows: InAppAuth for prod, web auth for staging + return Constants::inProduction(); +#elif defined(MZ_ANDROID) || defined(MZ_IOS) || defined(MZ_WASM) + return true #else - if (Constants::inProduction() || byPlatform({ - .android = true, - .ios = true, - })()) { - return true; - } - - return false; + // macOS and Linux + return false #endif }