File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable @typescript-eslint/no-explicit-any */
22import { LoginCredential } from '../../../common/entities/LoginCredential' ;
3- import { UserDTO } from '../../../common/entities/UserDTO' ;
43import { SessionContext } from '../../model/SessionContext' ;
54
65declare global {
@@ -16,6 +15,7 @@ declare global {
1615 session : {
1716 context ?: SessionContext ;
1817 rememberMe ?: boolean ;
18+ expires : number ;
1919 oidc ?: {
2020 state : string ;
2121 verifier : string ;
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ export class AuthenticationMWs {
5959 req . sessionOptions . expires = new Date (
6060 Date . now ( ) + Config . Server . sessionTimeout
6161 ) ;
62+ req . session . expires = req . sessionOptions . expires . getTime ( ) ;
6263 }
6364 return next ( ) ;
6465 }
@@ -267,6 +268,7 @@ export class AuthenticationMWs {
267268 req . sessionOptions . expires = new Date (
268269 Date . now ( ) + Config . Server . sessionTimeout
269270 ) ;
271+ req . session . expires = req . sessionOptions . expires . getTime ( ) ;
270272 }
271273 return next ( ) ;
272274 } catch ( err ) {
You can’t perform that action at this time.
0 commit comments