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