mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
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:
1 parent
23f90cc899
commit
1f4cdc4471
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user