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

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

@ -35,12 +35,14 @@ class Principal:
cohort_ids: Optional[list[str]] = None,
email: str = "",
display_name: str = "",
consent_at: float | None = None,
) -> None:
self.user_id = user_id
self.role = role
self.cohort_ids = cohort_ids or []
self.email = email
self.display_name = display_name
self.consent_at = consent_at
def get_settings_dep() -> Settings:
@ -74,6 +76,7 @@ async def get_current_principal(
cohort_ids=session.cohort_ids,
email=session.email,
display_name=session.display_name,
consent_at=session.consent_at,
)