feat: 기능 추가 과정중

This commit is contained in:
donghyeon-ka
2026-07-30 15:58:20 +09:00
parent d3ef801fe6
commit 6c52cdb916
648 changed files with 126325 additions and 6680 deletions
@@ -0,0 +1,30 @@
export type SessionState =
| "authenticated"
| "unauthenticated"
| "recovery-pending"
| "integration-failed";
export type SessionGateway = Readonly<{
getState(): SessionState;
subscribe(listener: () => void): () => void;
beginSignIn(returnTo?: string): Promise<void>;
signOut(): Promise<void>;
recover(): Promise<"restored" | "no-session">;
}>;
export type CredentialRequestBinding = Readonly<{
origin: string;
method: string;
operationId: string;
}>;
export type CredentialPatch = Readonly<{
headers: Readonly<Record<string, string>>;
}>;
export type CredentialAttacher = Readonly<{
credentialPatch(binding: CredentialRequestBinding): Promise<CredentialPatch>;
onUnauthenticated(): void;
}>;
export type AuthSessionPort = SessionGateway & CredentialAttacher;