Common: fix

This commit is contained in:
Viktor Fomin 2023-10-18 18:58:46 +03:00
parent a2c0ec04f1
commit b720a55bb0

View File

@ -1,14 +1,7 @@
import api from "../api";
import { setWithCredentialsStatus } from "../api/client";
type TLoginProps = {
user: string;
hash: string;
session: boolean;
captchaToken: string;
}
export async function login({ user, hash, session = true, captchaToken = "" }: TLoginProps
export async function login(user: string, hash: string, session = true, captchaToken: string = ""
): Promise<string | object> {
try {
const response = await api.user.login(user, hash, session, captchaToken);