10 lines
459 B
TypeScript
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
|