Files
gridpilot.gg/packages/identity/application/ports/IdentitySessionPort.ts
2025-12-04 15:49:57 +01:00

8 lines
333 B
TypeScript

import type { AuthenticatedUserDTO } from '../dto/AuthenticatedUserDTO';
import type { AuthSessionDTO } from '../dto/AuthSessionDTO';
export interface IdentitySessionPort {
getCurrentSession(): Promise<AuthSessionDTO | null>;
createSession(user: AuthenticatedUserDTO): Promise<AuthSessionDTO>;
clearSession(): Promise<void>;
}