Added session changer, more comments, BREAKING: renamed noLogging to noHttpLogging
This commit is contained in:
10
README.md
10
README.md
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user