fix: send canonical login identifier
This commit is contained in:
@@ -27,8 +27,8 @@ export interface ImpersonationExchangeResult {
|
|||||||
expiresIn: number
|
expiresIn: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export function loginMerchant(username: string, password: string) {
|
export function loginMerchant(loginId: string, password: string) {
|
||||||
return apiRequest<TokenPair>({ method: 'POST', url: '/auth/login', data: { username, password } })
|
return apiRequest<TokenPair>({ method: 'POST', url: '/auth/login', data: { loginId, password } })
|
||||||
}
|
}
|
||||||
|
|
||||||
export function registerMerchant(payload: RegisterMerchantRequest) {
|
export function registerMerchant(payload: RegisterMerchantRequest) {
|
||||||
|
|||||||
Reference in New Issue
Block a user