You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/common-db/src/lib/common/session.ts
+50-22Lines changed: 50 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,33 @@
1
-
typeSession=any;
1
+
typeSessionData=Record<string,any>;
2
+
3
+
typeSession={
4
+
Store: any;
5
+
};
2
6
3
7
// TODO: in the long term move this file somewhere where we have types access it is nowhere used in controller itself and just exported for adapters so it should go to js-controller-adapter package
4
8
interfaceAdapterStoreOptions{
5
9
/** The ioBroker adapter */
6
10
adapter: any;
7
11
/** The cookie */
8
-
cookie: any;
12
+
cookie?: {
13
+
maxAge?: number;
14
+
originalMaxAge?: number;
15
+
};
9
16
}
10
17
11
18
/**
12
19
* Function to create an AdapterStore constructor
13
20
*
14
-
* @param session The session object
15
-
* @param defaultTtl the default time to live
21
+
* @param session The session object, like "express-session"
22
+
* @param defaultTtl the default time to live in seconds
16
23
* @returns the constructor to create a new AdapterStore
0 commit comments