From 1f4cdc4471da0bfb5b6c98f5b59bf6aaf6ab35e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cemal=20K=C4=B1l=C4=B1=C3=A7?= Date: Tue, 31 Mar 2026 18:03:45 +0200 Subject: [PATCH] fix(oauth-custom-providers): use host endpoint for listing providers (#44396) ## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Bug fix ## Summary Use supabase project url for CRUD custom oauth providers --- .../CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx | 2 +- .../data/oauth-custom-providers/oauth-custom-providers-query.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx b/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx index 794a29c1708..d04c2ca7207 100644 --- a/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx +++ b/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx @@ -114,7 +114,7 @@ export const CreateOrUpdateCustomProviderSheet = ({ }: CreateOrUpdateCustomProviderSheetProps) => { const isEditMode = !!providerToEdit const { ref: projectRef } = useParams() - const { data: endpointData } = useProjectApiUrl({ projectRef }) + const { hostEndpoint: endpointData } = useProjectApiUrl({ projectRef }) const form = useForm>({ resolver: zodResolver(FormSchema), defaultValues: initialValues, diff --git a/apps/studio/data/oauth-custom-providers/oauth-custom-providers-query.ts b/apps/studio/data/oauth-custom-providers/oauth-custom-providers-query.ts index dabea337f67..047619c8648 100644 --- a/apps/studio/data/oauth-custom-providers/oauth-custom-providers-query.ts +++ b/apps/studio/data/oauth-custom-providers/oauth-custom-providers-query.ts @@ -48,7 +48,7 @@ export const useOAuthCustomProvidersQuery = ( ...options }: UseCustomQueryOptions = {} ) => { - const { data: clientEndpoint } = useProjectApiUrl({ projectRef }) + const { hostEndpoint: clientEndpoint } = useProjectApiUrl({ projectRef }) const { data: authConfig, isSuccess: isSuccessConfig } = useAuthConfigQuery({ projectRef }) const isOAuthCustomProvidersEnabled = !!authConfig?.CUSTOM_OAUTH_ENABLED