From 4c5bfa52859c6ddb5dce671c2cbdc0decc85ae7d Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 11 Dec 2024 09:22:36 +0000 Subject: [PATCH] Fix login response not being handled due to not being JSON --- packages/frontend-core/src/api/auth.ts | 1 + packages/frontend-core/src/api/user.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/frontend-core/src/api/auth.ts b/packages/frontend-core/src/api/auth.ts index 8f5fa21b49..aa55c32a51 100644 --- a/packages/frontend-core/src/api/auth.ts +++ b/packages/frontend-core/src/api/auth.ts @@ -40,6 +40,7 @@ export const buildAuthEndpoints = (API: BaseAPIClient): AuthEndpoints => ({ username, password, }, + parseResponse: () => undefined, }) }, diff --git a/packages/frontend-core/src/api/user.ts b/packages/frontend-core/src/api/user.ts index a980fc8ec4..a03c986a61 100644 --- a/packages/frontend-core/src/api/user.ts +++ b/packages/frontend-core/src/api/user.ts @@ -1,7 +1,6 @@ import { AcceptUserInviteRequest, AcceptUserInviteResponse, - AccountMetadata, BulkUserCreated, BulkUserDeleted, BulkUserRequest, @@ -11,6 +10,7 @@ import { DeleteInviteUsersRequest, InviteUsersRequest, InviteUsersResponse, + LookupAccountHolderResponse, SaveUserResponse, SearchUsersRequest, SearchUsersResponse, @@ -55,7 +55,7 @@ export interface UserEndpoints { userId: string, appId: string ) => Promise<{ message: string }> - getAccountHolder: () => Promise + getAccountHolder: () => Promise searchUsers: (data: SearchUsersRequest) => Promise createUsers: ( users: User[],