8 lines
355 B
TypeScript
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
|