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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user