Skip to content

Beautiful Open-Source Form Builder

Enhance OAuth Providers Configuration for Stripe Integration

JhumanJ8cb6e1238fea
diff --git a/client/stores/oauth_providers.js b/client/stores/oauth_providers.js
index 4b1fd1b46..eaa680142 100644
--- a/client/stores/oauth_providers.js
+++ b/client/stores/oauth_providers.js
@@ -24,7 +24,8 @@ export const useOAuthProvidersStore = defineStore("oauth_providers", () => {
name: 'stripe',
title: 'Stripe',
icon: 'cib:stripe',
- enabled: true
+ enabled: featureFlagsStore.getFlag('billing.stripe_publishable_key', false),
+ auth_type: 'redirect'
},
{
name: 'telegram',
@@ -57,7 +58,7 @@ export const useOAuthProvidersStore = defineStore("oauth_providers", () => {
contentStore.resetState()
const serviceConfig = getService(service)
- if (serviceConfig && serviceConfig.auth_type !== 'redirect') {
+ if (serviceConfig && serviceConfig.auth_type && serviceConfig.auth_type !== 'redirect') {
return
}