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