games_app/backend/dist/realtime/ws/auth.d.ts
2026-07-07 15:03:17 +02:00

10 lines
459 B
TypeScript

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