Refactor API endpoint for SSO link creation and update related function

- Updated the `useCreatePaymentMethodsSsoLink` function to use the new API endpoint `/api/auth/sso-link` for SSO link creation, ensuring alignment with the latest API structure.
This commit is contained in:
barsa 2025-12-15 10:30:47 +09:00
parent 90e80c648b
commit b193361a72

View File

@ -284,7 +284,8 @@ export function createClient(options: CreateClientOptions = {}): ApiClient {
opts: RequestOptions = {}
): Promise<ApiResponse<T>> => {
const resolvedPath = applyPathParams(path, opts.params?.path);
const url = new URL(resolvedPath, baseUrl);
const normalizedPath = normalizeApiPath(resolvedPath);
const url = new URL(normalizedPath, baseUrl);
const queryString = buildQueryString(opts.params?.query);
if (queryString) {