Add config.expireInactiveSession to add support for non-expiring inactive sessions (#1536)
* Create non-expiring session when sessionLength is zero * Introduce expireInactiveSessions setting
This commit is contained in:
@@ -114,6 +114,7 @@ class ParseServer {
|
||||
},
|
||||
liveQuery = {},
|
||||
sessionLength = 31536000, // 1 Year in seconds
|
||||
expireInactiveSessions = true,
|
||||
verbose = false,
|
||||
revokeSessionOnPasswordReset = true,
|
||||
}) {
|
||||
@@ -188,6 +189,7 @@ class ParseServer {
|
||||
maxUploadSize: maxUploadSize,
|
||||
liveQueryController: liveQueryController,
|
||||
sessionLength: Number(sessionLength),
|
||||
expireInactiveSessions: expireInactiveSessions,
|
||||
revokeSessionOnPasswordReset
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user