login with fill otp
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
type CheckHasAccountPhoneType,
|
||||
type CheckHasAccountType,
|
||||
type LoginWithOtpType,
|
||||
type LoginWithOtpResponse,
|
||||
type LoginWithPasswordType,
|
||||
type OtpVerifyType,
|
||||
type RefreshTokenType,
|
||||
@@ -15,8 +16,13 @@ export const loginWithPassword = async (params: LoginWithPasswordType) => {
|
||||
return data;
|
||||
};
|
||||
|
||||
export const loginWithOtp = async (params: LoginWithOtpType) => {
|
||||
const { data } = await axios.post(`/admin/auth/otp/request`, params);
|
||||
export const loginWithOtp = async (
|
||||
params: LoginWithOtpType
|
||||
): Promise<LoginWithOtpResponse> => {
|
||||
const { data } = await axios.post<LoginWithOtpResponse>(
|
||||
`/admin/auth/otp/request`,
|
||||
params
|
||||
);
|
||||
return data;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user