동의 게이트와 런타임 안정화

This commit is contained in:
Yun Chan 2026-06-27 17:22:38 +09:00
parent 0eb7d925ed
commit 0ec266a761
34 changed files with 1186 additions and 158 deletions

View file

@ -161,6 +161,11 @@ export interface MeResponse {
display_name: string;
role: string; // "learner" | "teacher" | "admin"
cohort_ids: string[];
consent_at: number | null;
}
export interface ConsentResponse {
consent_at: number | null;
}
export interface AuthConfigResponse {
@ -179,6 +184,8 @@ export interface AuthConfigResponse {
export const authApi = {
config: () => api.get<AuthConfigResponse>("/auth/config"),
acceptConsent: () => api.post<ConsentResponse>("/auth/consent", { accepted: true }),
withdrawConsent: () => api.del<ConsentResponse>("/auth/consent"),
};
export type SessionStage = "라포" | "탐색" | "개입" | "정리";