web: add complete password reset flow with deep link token handling
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user