Added session changer, more comments, BREAKING: renamed noLogging to noHttpLogging

This commit is contained in:
Sebastian Seedorf
2020-11-18 22:14:33 +01:00
parent 33214c83e8
commit cfa8c654b0
10 changed files with 83 additions and 15 deletions

View File

@@ -19,12 +19,18 @@ It just needs to sit there with no more action required.
declare global {
namespace Express {
interface Request {
// fetch user info (needs AuthProxy and some headers)
getUserInfo(): Promise<import('pkg-express-utils').UserInfo|undefined>;
noLogging: boolean|undefined;
permissionDetails?: import('role-acl').Permission;
// fetch user info (needed for HttpLogger)
noHttpLogging: boolean|undefined;
// permission details (after a Permission route)
permissionDetails: import('role-acl').Permission;
// switch session to another user;does not close old session (after Session router)
setSessionById(sessionId: string): Promise<boolean>;
}
interface Response {
// initialize a logout (needs AuthProxy and some headers)
initLogout(): boolean;
}
}