Skip to content

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

fix(auth-config) : force refetch lint data after config update (#41960)

Vaibhav01fe4e68a0f2
diff --git a/apps/studio/data/auth/auth-config-update-mutation.ts b/apps/studio/data/auth/auth-config-update-mutation.ts
index b8197fd5e45..f2d4fc47dbe 100644
--- a/apps/studio/data/auth/auth-config-update-mutation.ts
+++ b/apps/studio/data/auth/auth-config-update-mutation.ts
@@ -46,6 +46,10 @@ export const useAuthConfigUpdateMutation = ({
queryClient.invalidateQueries({ queryKey: authKeys.authConfig(projectRef) }),
queryClient.invalidateQueries({ queryKey: lintKeys.lint(projectRef) }),
])
+ await queryClient.refetchQueries({
+ queryKey: lintKeys.lint(projectRef),
+ type: 'active',
+ })
await onSuccess?.(data, variables, context)
},
async onError(data, variables, context) {