web: fix reset password token flow and auth interceptor
This commit is contained in:
@@ -14,7 +14,7 @@ export async function requestPasswordResetRequest(email: string): Promise<void>
|
||||
}
|
||||
|
||||
export async function resetPasswordRequest(token: string, password: string): Promise<void> {
|
||||
await http.post("/auth/reset-password", { token, password });
|
||||
await http.post("/auth/reset-password", { token, new_password: password });
|
||||
}
|
||||
|
||||
export async function loginRequest(email: string, password: string, otpCode?: string, recoveryCode?: string): Promise<TokenPair> {
|
||||
|
||||
Reference in New Issue
Block a user