games_app/backend/dist/realtime/ws/auth.d.ts
2026-06-29 15:01:23 +02:00

8 lines
355 B
TypeScript

import type { JwtPayload } from '../../types';
export type WsAuthContext = {
userId: string;
role: JwtPayload['role'];
};
export declare function authenticateWsToken(token: string | undefined): WsAuthContext | null;
export declare function extractBearerToken(headerValue: string | undefined): string | undefined;
//# sourceMappingURL=auth.d.ts.map