From 0e4fd495af7d2add5bb2883cd9b4663ed72fe86c Mon Sep 17 00:00:00 2001 From: Nicolay Starovoytov <56384821+kukidon-dev@users.noreply.github.com> Date: Mon, 10 Jun 2024 12:01:22 +0300 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gürgün Dayıoğlu Signed-off-by: Nicolay Starovoytov <56384821+kukidon-dev@users.noreply.github.com> --- src/session-managers/SecureSessionManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session-managers/SecureSessionManager.ts b/src/session-managers/SecureSessionManager.ts index c18b80d7..f93150fa 100644 --- a/src/session-managers/SecureSessionManager.ts +++ b/src/session-managers/SecureSessionManager.ts @@ -42,7 +42,7 @@ export class SecureSessionManager { if (this.clearSessionOnLogin && object) { const keepSessionInfoKeys: string[] = [...this.clearSessionIgnoreFields] if (options?.keepSessionInfo) { - keepSessionInfoKeys.push(...(Object.keys(request.session) || [])) + keepSessionInfoKeys.push(...(Object.keys(request.session))) } await request.session.regenerate(keepSessionInfoKeys) } else {