This commit is contained in:
hamid zarghami
2026-03-14 10:42:47 +03:30
parent 07a05e770b
commit 11f55d9c1c
3 changed files with 124 additions and 6 deletions
+12
View File
@@ -0,0 +1,12 @@
import axios from "@/config/axios";
export const refreshToken = async ({
refreshToken,
}: {
refreshToken: string;
}) => {
const { data } = await axios.post(`/admin/auth/refresh`, {
refreshToken: refreshToken,
});
return data;
};