refresh tokens
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user