fix(auth-web): handle verify-email token links and show auth feedback
Some checks failed
CI / test (push) Failing after 1m56s

This commit is contained in:
2026-03-08 21:11:06 +03:00
parent 727df4c7f8
commit af3c5bd79e
4 changed files with 46 additions and 2 deletions

View File

@@ -5,6 +5,10 @@ export async function registerRequest(email: string, name: string, username: str
await http.post("/auth/register", { email, name, username, password });
}
export async function verifyEmailRequest(token: string): Promise<void> {
await http.post("/auth/verify-email", { token });
}
export async function loginRequest(email: string, password: string, otpCode?: string, recoveryCode?: string): Promise<TokenPair> {
const { data } = await http.post<TokenPair>("/auth/login", {
email,