diff --git a/packages/hoppscotch-common/src/components/http/Authorization.vue b/packages/hoppscotch-common/src/components/http/Authorization.vue index 808c3fca9..e76504b5b 100644 --- a/packages/hoppscotch-common/src/components/http/Authorization.vue +++ b/packages/hoppscotch-common/src/components/http/Authorization.vue @@ -152,12 +152,16 @@
-
-
+
+ Inherited - {{ getAuthName(inheritedProperties?.auth?.authType) }} from Parent + {{ getAuthName(inheritedProperties.auth.authType) }} from Parent Collection {{ inheritedProperties?.parentName }} -
+ + + Please save this request in any collection to inherit the + authorization +
diff --git a/packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts b/packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts index 37419d253..f0b5b49b4 100644 --- a/packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts +++ b/packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts @@ -55,7 +55,7 @@ export const getComputedAuthHeaders = ( if (!request) return [] - if (!request.auth.authActive) return [] + if (!request.auth || !request.auth.authActive) return [] const headers: HoppRESTHeader[] = [] @@ -165,7 +165,7 @@ export const getComputedParams = ( ): ComputedParam[] => { // When this gets complex, its best to split this function off (like with getComputedHeaders) // API-key auth can be added to query params - if (!req.auth.authActive) return [] + if (!req.auth || !req.auth.authActive) return [] if (req.auth.authType !== "api-key") return [] if (req.auth.addTo !== "Query params") return []