web: add complete password reset flow with deep link token handling
Some checks failed
Android CI / android (push) Failing after 3m59s
Android Release / release (push) Has started running
CI / test (push) Failing after 2m15s

This commit is contained in:
Codex
2026-03-09 16:09:17 +03:00
parent f708854bb2
commit 69c0b632df
4 changed files with 148 additions and 6 deletions

View File

@@ -9,6 +9,14 @@ export async function verifyEmailRequest(token: string): Promise<void> {
await http.post("/auth/verify-email", { token });
}
export async function requestPasswordResetRequest(email: string): Promise<void> {
await http.post("/auth/request-password-reset", { email });
}
export async function resetPasswordRequest(token: string, password: string): Promise<void> {
await http.post("/auth/reset-password", { token, password });
}
export async function loginRequest(email: string, password: string, otpCode?: string, recoveryCode?: string): Promise<TokenPair> {
const { data } = await http.post<TokenPair>("/auth/login", {
email,