Showing 1 of 1 total issue
Function touch
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
touch(sid: string, sess: Object, callback: Function): void {
try {
if (!sess.updated || Number(sess.updated) + this.touchInterval <= Date.now()) {
const sessionId = this.getSessionId(sid);
const expires = this.getExpirationDate(sess);