refresh tokens

This commit is contained in:
hamid zarghami
2026-02-03 11:44:03 +03:30
parent 7e30143268
commit fe99e802bc
4 changed files with 133 additions and 11 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ export const checkHasAccount = async (params: CheckHasAccountType) => {
};
export const checkHasAccountRegister = async (
params: CheckHasAccountPhoneType,
params: CheckHasAccountPhoneType
) => {
const { data } = await axios.post(`/auth/register/initiate`, params);
return data;
@@ -40,7 +40,7 @@ export const register = async (params: RegisterType) => {
};
export const refreshToken = async (params: RefreshTokenType) => {
const { data } = await axios.post(`/public/auth/refresh`, params);
const { data } = await axios.post(`/admin/auth/refresh`, params);
return data;
};