basic Uer UI
Build and Release / release (push) Successful in 1m30s

This commit is contained in:
taDuc
2026-06-06 15:36:15 +07:00
parent 61949e7149
commit 820e0b5216
65 changed files with 3460 additions and 1322 deletions
+8 -2
View File
@@ -1,4 +1,5 @@
import api from "@/config/config";
import type { AxiosRequestConfig } from "axios";
import { API } from "../../api";
import { clearStoredTokens, extractTokensFromResponsePayload, setStoredTokens } from "@/auth/tokenStore";
@@ -62,7 +63,13 @@ export const apiResetPassword = async (payload: ResetPasswordPayload) => {
return response.data;
};
export const apiGetCurrentUser = async (config?: any) => {
type AuthRequestConfig = AxiosRequestConfig & {
skipAuth?: boolean;
skipRefresh?: boolean;
authToken?: string | null;
};
export const apiGetCurrentUser = async (config?: AuthRequestConfig) => {
const response = await api.get(API.User.CURRENT, config);
return response?.data;
};
@@ -71,4 +78,3 @@ export const apiChangePassword = async (payload: ChangePasswordPayload) => {
const response = await api.patch(API.User.CHANGE_PASSWORD, payload);
return response?.data;
};