From b193361a72766ae7c68ca316eb967a1adc3aef3c Mon Sep 17 00:00:00 2001 From: barsa Date: Mon, 15 Dec 2025 10:30:47 +0900 Subject: [PATCH] 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. --- apps/portal/src/lib/api/runtime/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/portal/src/lib/api/runtime/client.ts b/apps/portal/src/lib/api/runtime/client.ts index aefda618..d71f33ae 100644 --- a/apps/portal/src/lib/api/runtime/client.ts +++ b/apps/portal/src/lib/api/runtime/client.ts @@ -284,7 +284,8 @@ export function createClient(options: CreateClientOptions = {}): ApiClient { opts: RequestOptions = {} ): Promise> => { 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) {