Fix login response not being handled due to not being JSON
This commit is contained in:
parent
bcfe3d258d
commit
4c5bfa5285
|
@ -40,6 +40,7 @@ export const buildAuthEndpoints = (API: BaseAPIClient): AuthEndpoints => ({
|
||||||
username,
|
username,
|
||||||
password,
|
password,
|
||||||
},
|
},
|
||||||
|
parseResponse: () => undefined,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -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[],
|
||||||
|
|
Loading…
Reference in New Issue