refactor: apply consistent formatting to improve code quality
Some checks failed
Deploy to Production / deploy (push) Failing after 2m20s
Lint / lint (push) Successful in 9m37s

Ensure uniform code formatting across components by aligning with the established code style. Adjust imports, indentation, and spacing to enhance readability and maintainability.
This commit is contained in:
Mathis HERRIOT
2026-01-14 17:26:58 +01:00
parent 03e5915fcc
commit 35abd0496e
95 changed files with 6839 additions and 6659 deletions

View File

@@ -1,22 +1,24 @@
import api from "@/lib/api";
import type { LoginResponse } from "@/types/auth";
import type { LoginResponse, RegisterPayload } from "@/types/auth";
export const AuthService = {
async login(email: string, password: string): Promise<LoginResponse> {
const { data } = await api.post<LoginResponse>("/auth/login", { email, password });
return data;
},
async login(email: string, password: string): Promise<LoginResponse> {
const { data } = await api.post<LoginResponse>("/auth/login", {
email,
password,
});
return data;
},
async register(payload: any): Promise<any> {
const { data } = await api.post("/auth/register", payload);
return data;
},
async register(payload: RegisterPayload): Promise<void> {
await api.post("/auth/register", payload);
},
async logout(): Promise<void> {
await api.post("/auth/logout");
},
async logout(): Promise<void> {
await api.post("/auth/logout");
},
async refresh(): Promise<void> {
await api.post("/auth/refresh");
},
async refresh(): Promise<void> {
await api.post("/auth/refresh");
},
};