Files
agentic-dev/packages/core-realtime/src/realtime-authenticator.interface.ts

7 lines
205 B
TypeScript

export interface IRealtimeAuthenticator {
authenticate(handshake: {
cookies: Record<string, string>;
headers: Record<string, string>;
}): Promise<{ userId: string; roles: string[] } | null>;
}