[cs] chore: auth 서비스 수정

This commit is contained in:
2026-07-08 15:52:14 +09:00
parent 7e59ae6b66
commit 914df505ae
5 changed files with 10 additions and 8 deletions
+1
View File
@@ -13,6 +13,7 @@
"@common/auth": "workspace:*",
"@common/components": "workspace:*",
"@common/config": "workspace:*",
"@common/network": "workspace:*",
"@fontsource-variable/noto-sans-kr": "^5.2.5",
"@frontend-opensource/use-react-hooks": "^1.1.4",
"@fullcalendar/core": "^6.1.17",
@@ -5,15 +5,19 @@ import {
CLAIM_NAME,
ENDPOINT,
} from "@/shared/config";
import { getRemainingMs } from "@common/auth";
import {
type AuthPayload,
type AuthService,
getRemainingMs,
} from "@common/auth";
import {
clearRefreshTimer,
removeToken,
setToken,
setupRefreshTimer,
tokenManager,
} from "../lib/token-manager";
import type { AuthPayload, AuthService } from "../model/auth-interface";
function resolveLoginError(message: string | undefined): string {
switch (message) {
@@ -123,5 +127,6 @@ async function logout(): Promise<void> {
export const authService: AuthService = {
login,
silentRefresh,
declineSessionExtend: clearRefreshTimer,
logout,
};
@@ -8,6 +8,7 @@ export const {
setToken,
removeToken,
setupRefreshTimer,
clearRefreshTimer,
getAccessToken,
getRefreshToken,
getUserId,
@@ -1 +0,0 @@
export type { AuthPayload, AuthService } from "@common/auth";
+1 -5
View File
@@ -22,12 +22,8 @@
"name": "next"
}
],
"baseUrl": "./src",
"paths": {
"@/*": ["./*"],
"@common/components": ["../../../packages/common/components/src/"],
"@common/config": ["../../../packages/common/config/dist/"],
"@common/network": ["../../../packages/common/network/"]
"@/*": ["./src/*"]
}
},
"include": [