chore: add showInterceptorWarningForDigestAuth field under platformFeatureFlags

Introduce a new platform-level feature flag indicating whether to display a warning via the inspector regarding supported interceptor alongside Digest Auth.
This commit is contained in:
jamesgeorge007
2024-10-30 18:28:13 +05:30
parent 8ac934599a
commit c3518cf678
4 changed files with 8 additions and 3 deletions

View File

@@ -75,10 +75,8 @@ export class AuthorizationInspectorService
const results: InspectorResult[] = []
// `Agent` interceptor is recommended while using Digest Auth
// TODO: Better check to detect the platform
// Interceptor check only applies to the browser platform
const isUnsupportedInterceptor =
platform.interceptors.default === "browser" &&
platform.platformFeatureFlags.showInterceptorWarningForDigestAuth &&
this.interceptorService.currentInterceptorID.value !==
this.agentService.interceptorID