mirror of
https://github.com/PlayEdu/backend
synced 2025-12-26 08:09:52 +08:00
20 lines
392 B
TypeScript
20 lines
392 B
TypeScript
import client from "./internal/httpClient";
|
|
|
|
export function login(
|
|
email: string,
|
|
password: string,
|
|
captchaKey: string,
|
|
captchaVal: string
|
|
) {
|
|
return client.post("/backend/v1/auth/login", {
|
|
email: email,
|
|
password: password,
|
|
captcha_key: captchaKey,
|
|
captcha_val: captchaVal,
|
|
});
|
|
}
|
|
|
|
export function logout() {
|
|
return client.post("/backend/v1/auth/logout", {});
|
|
}
|