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,
password,
},
parseResponse: () => undefined,
})
},

View File

@ -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<AccountMetadata | undefined>
getAccountHolder: () => Promise<LookupAccountHolderResponse>
searchUsers: (data: SearchUsersRequest) => Promise<SearchUsersResponse>
createUsers: (
users: User[],