chore: import DH V2 D5.6.4 production baseline
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import type { Request } from 'express';
|
||||
|
||||
export type AuthTransport = 'cookie' | 'bearer';
|
||||
|
||||
export interface AuthPrincipal {
|
||||
userId: string;
|
||||
username: string;
|
||||
sessionId: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
email: string | null;
|
||||
mustChangePassword: boolean;
|
||||
roles: string[];
|
||||
permissions: string[];
|
||||
transport: AuthTransport;
|
||||
}
|
||||
|
||||
export interface RequestWithContext extends Request {
|
||||
requestId: string;
|
||||
auth?: AuthPrincipal;
|
||||
}
|
||||
Reference in New Issue
Block a user