You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
854 B
28 lines
854 B
import type { ListResultDto } from "#/abp-core";
|
|
import type {
|
|
GetTwoFactorProvidersInput,
|
|
TwoFactorProvider,
|
|
SendEmailSigninCodeDto,
|
|
SendPhoneSigninCodeDto,
|
|
} from "#/account/account";
|
|
import requestClient from "@/api/request";
|
|
|
|
/**
|
|
* Get available two-factor authentication providers
|
|
*/
|
|
export const getTwoFactorProvidersApi = (input: GetTwoFactorProvidersInput) =>
|
|
requestClient.get<ListResultDto<TwoFactorProvider>>("/api/account/two-factor-providers", {
|
|
params: input,
|
|
});
|
|
|
|
/**
|
|
* Send sign-in verification email
|
|
*/
|
|
export const sendEmailSigninCodeApi = (input: SendEmailSigninCodeDto) =>
|
|
requestClient.post("/api/account/email/send-signin-code", input);
|
|
|
|
/**
|
|
* Send sign-in verification SMS
|
|
*/
|
|
export const sendPhoneSigninCodeApi = (input: SendPhoneSigninCodeDto) =>
|
|
requestClient.post("/api/account/phone/send-signin-code", input);
|
|
|