import { UserInfoTOTPConfiguration } from "@models/UserInfoTOTPConfiguration"; import { UserInfoTOTPConfigurationPath } from "@services/Api"; import { Get } from "@services/Client"; export type TOTPDigits = 6 | 8; export interface UserInfoTOTPConfigurationPayload { period: number; digits: TOTPDigits; } export async function getUserInfoTOTPConfiguration(): Promise { const res = await Get(UserInfoTOTPConfigurationPath); return { ...res }; }