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:
parent
90e80c648b
commit
b193361a72
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user