mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-14 22:07:02 +08:00
20 lines
393 B
TypeScript
20 lines
393 B
TypeScript
import client from "./internal/httpClient";
|
|
|
|
export function login(
|
|
email: string,
|
|
password: string,
|
|
captchaKey: string,
|
|
captchaVal: string
|
|
) {
|
|
return client.post("/api/v1/auth/login/password", {
|
|
email: email,
|
|
password: password,
|
|
captcha_key: captchaKey,
|
|
captcha_val: captchaVal,
|
|
});
|
|
}
|
|
|
|
export function logout() {
|
|
return client.post("/api/v1/auth/logout", {});
|
|
}
|