Fix login response not being handled due to not being JSON

This commit is contained in:
Andrew Kingston 2024-12-11 09:22:36 +00:00
parent bcfe3d258d
commit 4c5bfa5285
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -40,6 +40,7 @@ export const buildAuthEndpoints = (API: BaseAPIClient): AuthEndpoints => ({
username, username,
password, password,
}, },
parseResponse: () => undefined,
}) })
}, },

View File

@ -1,7 +1,6 @@
import { import {
AcceptUserInviteRequest, AcceptUserInviteRequest,
AcceptUserInviteResponse, AcceptUserInviteResponse,
AccountMetadata,
BulkUserCreated, BulkUserCreated,
BulkUserDeleted, BulkUserDeleted,
BulkUserRequest, BulkUserRequest,
@ -11,6 +10,7 @@ import {
DeleteInviteUsersRequest, DeleteInviteUsersRequest,
InviteUsersRequest, InviteUsersRequest,
InviteUsersResponse, InviteUsersResponse,
LookupAccountHolderResponse,
SaveUserResponse, SaveUserResponse,
SearchUsersRequest, SearchUsersRequest,
SearchUsersResponse, SearchUsersResponse,
@ -55,7 +55,7 @@ export interface UserEndpoints {
userId: string, userId: string,
appId: string appId: string
) => Promise<{ message: string }> ) => Promise<{ message: string }>
getAccountHolder: () => Promise<AccountMetadata | undefined> getAccountHolder: () => Promise<LookupAccountHolderResponse>
searchUsers: (data: SearchUsersRequest) => Promise<SearchUsersResponse> searchUsers: (data: SearchUsersRequest) => Promise<SearchUsersResponse>
createUsers: ( createUsers: (
users: User[], users: User[],