mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
11 lines
345 B
TypeScript
11 lines
345 B
TypeScript
import { callPostApi } from "$lib/hooks";
|
|
import type { PasswordChangeRequest } from "$lib/server/schemas";
|
|
|
|
export const requestPasswordChange = async (oldPassword: string, newPassword: string) => {
|
|
const res = await callPostApi<PasswordChangeRequest>("/api/auth/changePassword", {
|
|
oldPassword,
|
|
newPassword,
|
|
});
|
|
return res.ok;
|
|
};
|