mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
12 lines
294 B
TypeScript
12 lines
294 B
TypeScript
import { trpc } from "$trpc/client";
|
|
|
|
export const requestPasswordChange = async (oldPassword: string, newPassword: string) => {
|
|
try {
|
|
await trpc().auth.changePassword.mutate({ oldPassword, newPassword });
|
|
return true;
|
|
} catch {
|
|
// TODO: Error Handling
|
|
return false;
|
|
}
|
|
};
|