251121_01_ENH : 로그인 및 인증 저장, api통신 시 자동으로 accessKey 붙게 조치

This commit is contained in:
2025-11-21 15:33:51 +09:00
parent 0707c91d41
commit 74de3d58f7
63 changed files with 2056 additions and 261 deletions

View File

@@ -0,0 +1,23 @@
"use client";
import { StorageKeys } from "@/store/storage/storage-keys";
import {createSessionStorageAtom} from "@/store/jotai/utils";
import {AuthState} from "@/store/jotai/auth";
export type SelectedProject = {
id: string;
name: string;
// 필요하면 여기서 추가 (code, status 등)
};
/**
* 탭별로 유지되는 선택 프로젝트 정보
* - 새로고침: 유지
* - 같은 탭: 유지
* - 탭/브라우저 닫으면: 삭제
*/
export const selectedProjectAtom =
createSessionStorageAtom<SelectedProject | null>(
StorageKeys.SelectedProject,
null,
);