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
This commit is contained in:
Cemal Kılıç authored and GitHub committed 2026-03-31 18:03:45 +02:00
1 parent 23f90cc899
commit 1f4cdc4471
2 files changed
+2 -2

No files matched your search

@@ -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<z.infer<typeof FormSchema>>({
resolver: zodResolver(FormSchema),
defaultValues: initialValues,
@@ -48,7 +48,7 @@ export const useOAuthCustomProvidersQuery = <TData = OAuthCustomProvidersData>(
...options
}: UseCustomQueryOptions<OAuthCustomProvidersData, OAuthCustomProvidersError, TData> = {}
) => {
const { data: clientEndpoint } = useProjectApiUrl({ projectRef })
const { hostEndpoint: clientEndpoint } = useProjectApiUrl({ projectRef })
const { data: authConfig, isSuccess: isSuccessConfig } = useAuthConfigQuery({ projectRef })
const isOAuthCustomProvidersEnabled = !!authConfig?.CUSTOM_OAUTH_ENABLED