[as] refactor: loginService -> authService

This commit is contained in:
2026-05-28 16:56:15 +09:00
parent 97df2c47de
commit 69bd924cd2
12 changed files with 7900 additions and 4383 deletions
@@ -3,7 +3,7 @@
import { useState } from "react";
import Image from "next/image";
import { LoginApi } from "@/entities/auth";
import { authService } from "@/entities/auth";
import { images } from "@common/assets";
import "./login.css";
@@ -20,7 +20,7 @@ function LoginPage() {
const password = formData.get("password") as string;
try {
await LoginApi.login({ userId, password });
await authService.login({ userId, password });
window.location.href = "/";
} catch (error) {
const message = error instanceof Error ? error.message : "로그인에 실패했습니다.";