Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

chore: hide advanced configuration for non-authCode grant types (#5293)

Anwarul Islam2ac8a158496d
diff --git a/packages/hoppscotch-common/src/components/http/authorization/OAuth2.vue b/packages/hoppscotch-common/src/components/http/authorization/OAuth2.vue
index 817cc6f60..9a7df33bc 100644
--- a/packages/hoppscotch-common/src/components/http/authorization/OAuth2.vue
+++ b/packages/hoppscotch-common/src/components/http/authorization/OAuth2.vue
@@ -172,7 +172,7 @@
</span>
</div>
- <div class="flex flex-col">
+ <div v-if="selectedGrantTypeID === 'authCode'" class="flex flex-col">
<div
class="flex cursor-pointer items-center justify-between py-2 pl-4 text-secondaryLight transition hover:text-secondary"
@click="toggleAdvancedConfig"