[st] chore: auth 서비스 수정

This commit is contained in:
2026-07-08 15:57:17 +09:00
parent 1e8514a0bc
commit 5bacfb04b5
5 changed files with 19 additions and 24 deletions
@@ -5,14 +5,18 @@ import {
ENDPOINT,
} from "@/shared/config";
import { getCookie } from "@/shared/lib";
import { getRemainingMs } from "@common/auth";
import {
type AuthPayload,
type AuthService,
getRemainingMs,
} from "@common/auth";
import {
clearAuthToken,
clearRefreshTimer,
setToken,
setupRefreshTimer,
} from "../lib/token-manager";
import type { AuthPayload, AuthService } from "../model/auth-interface";
import { clearTabStorePersist } from "@/store/tab-store";
@@ -96,5 +100,6 @@ export async function logout(): Promise<void> {
export const authService: AuthService = {
login,
silentRefresh,
declineSessionExtend: clearRefreshTimer,
logout,
};