Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: login component in app not respecting allowed auth provider ids
Andrew Bastinc62482e81f43
diff --git a/packages/hoppscotch-common/src/components/firebase/Login.vue b/packages/hoppscotch-common/src/components/firebase/Login.vueindex 78965120e..dbef82cb3 100644--- a/packages/hoppscotch-common/src/components/firebase/Login.vue+++ b/packages/hoppscotch-common/src/components/firebase/Login.vue@@ -312,8 +312,10 @@ const authProviders: AuthProviderItem[] = [},]-const allowedAuthProvidersIDsString: string | undefined = import.meta.env- .VITE_ALLOWED_AUTH_PROVIDERS+// Do not format the `import.meta.env.VITE_ALLOWED_AUTH_PROVIDERS` call into multiple lines!+// prettier-ignore+const allowedAuthProvidersIDsString =+ import.meta.env.VITE_ALLOWED_AUTH_PROVIDERSconst allowedAuthProvidersIDs = allowedAuthProvidersIDsString? allowedAuthProvidersIDsString.split(",")diff --git a/packages/hoppscotch-common/src/helpers/actions.ts b/packages/hoppscotch-common/src/helpers/actions.tsindex 23286f75d..a08437692 100644--- a/packages/hoppscotch-common/src/helpers/actions.ts+++ b/packages/hoppscotch-common/src/helpers/actions.ts@@ -182,7 +182,7 @@ type InvokeActionFunc = {* @param args The argument passed to the action handler. Optional if action has no args required*/export const invokeAction: InvokeActionFunc = <- A extends HoppAction | HoppActionWithArgs+ A extends HoppAction | HoppActionWithArgs,>(action: A,args: ArgOfHoppAction<A>