Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Gürgün Dayıoğlu <hey@gurgun.day>
Signed-off-by: Nicolay Starovoytov <56384821+kukidon-dev@users.noreply.github.com>
  • Loading branch information
kukidon-dev and gurgunday committed Jun 10, 2024
1 parent 66bd2e7 commit 0e4fd49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/session-managers/SecureSessionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Check failure on line 45 in src/session-managers/SecureSessionManager.ts

View workflow job for this annotation

GitHub Actions / test / Lint Code

Replace `(Object.keys(request.session)` with `Object.keys(request.session`
}
await request.session.regenerate(keepSessionInfoKeys)
} else {
Expand Down

0 comments on commit 0e4fd49

Please sign in to comment.