Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix attack protection and rate limit links in the web3 wallet configs (#40429)

Illia Basalaievad4877123865
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
index f0b56014cf3..d05e65d1528 100644
--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
@@ -196,12 +196,20 @@ export const ProviderForm = ({ config, provider, isActive }: ProviderFormProps)
/>
{Object.keys(provider.properties).map((x: string) => {
+ let description = provider.properties[x].description
+ if (description && projectRef) {
+ description = description.replace(
+ /\(\.\.\/auth\/(.*?)\)/g,
+ `(/project/${projectRef}/auth/$1)`
+ )
+ }
+
const properties = {
...provider.properties[x],
description:
provider.properties[x].isPaid && isFreePlan
- ? `${provider.properties[x].description} Only available on [Pro plan](/org/${organization.slug}/billing?panel=subscriptionPlan) and above.`
- : provider.properties[x].description,
+ ? `${description} Only available on [Pro plan](/org/${organization.slug}/billing?panel=subscriptionPlan) and above.`
+ : description,
}
const isDisabledDueToPlan = properties.isPaid && isFreePlan