(sessionLength, expireInactiveSessions)
| 657 | } |
| 658 | |
| 659 | static validateSessionConfiguration(sessionLength, expireInactiveSessions) { |
| 660 | if (expireInactiveSessions) { |
| 661 | if (isNaN(sessionLength)) { |
| 662 | throw 'Session length must be a valid number.'; |
| 663 | } else if (sessionLength <= 0) { |
| 664 | throw 'Session length must be a value greater than 0.'; |
| 665 | } |
| 666 | } |
| 667 | } |
| 668 | |
| 669 | static validateDefaultLimit(defaultLimit) { |
| 670 | if (defaultLimit == null) { |