MCPcopy Index your code
hub / github.com/parse-community/parse-server / validateSessionConfiguration

Method validateSessionConfiguration

src/Config.js:659–667  ·  view source on GitHub ↗
(sessionLength, expireInactiveSessions)

Source from the content-addressed store, hash-verified

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) {

Callers 1

validateOptionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected