Skip to content

Commit

Permalink
Add changePassword API endpoint for password updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bvdcode committed Dec 18, 2024
1 parent 5a4809e commit 7bbf9da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/octockup.client/src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ export const checkAuth = async (): Promise<boolean> => {
const response = await AxiosClient.getInstance().get("/auth/check");
return response.status === 200;
};

export const changePassword = async (newPassword: string): Promise<void> => {
await AxiosClient.getInstance().post("/auth/password", {
newPassword: newPassword,
});
};

0 comments on commit 7bbf9da

Please sign in to comment.