Common: fix
This commit is contained in:
parent
a2c0ec04f1
commit
b720a55bb0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user