chore: update eslint and prettier configuration

This commit is contained in:
2026-06-17 16:23:28 +05:30
parent b54242cf7e
commit 4c2241ff72
140 changed files with 2270 additions and 1287 deletions

View File

@@ -1,18 +1,31 @@
import type { AuthResponseData, LoginPayload, MeResponse, PermissionResponse } from '@/types';
import type {
AuthResponseData,
LoginPayload,
MeResponse,
PermissionResponse,
} from '@/types';
import { API_ROUTES } from '@/constants/apiRoutes';
import axiosClient, { axiosAuth } from '../axios/axios';
export const authService = {
login: async (payload: LoginPayload): Promise<AuthResponseData> => {
const response = await axiosAuth.post<AuthResponseData>(API_ROUTES.AUTH.LOGIN, payload, {
withCredentials: true,
});
const response = await axiosAuth.post<AuthResponseData>(
API_ROUTES.AUTH.LOGIN,
payload,
{
withCredentials: true,
},
);
return response.data;
},
refresh: async (): Promise<AuthResponseData> => {
const response = await axiosAuth.post<AuthResponseData>(API_ROUTES.AUTH.REFRESH, {}, {
withCredentials: true,
});
const response = await axiosAuth.post<AuthResponseData>(
API_ROUTES.AUTH.REFRESH,
{},
{
withCredentials: true,
},
);
return response.data;
},
logout: async (): Promise<void> => {