Skip to content

Commit b185fad

Browse files
lsmilek1mtrezza
andauthored
Additional explication for expireInactiveSessions in ParseServerOptions (#7552)
* Update docs.js Additional explication for `expireInactiveSessions` * Update index.js Additional explication for `expireInactiveSessions` * Update docs.js correcting spelling error * Update index.js correcting spelling error * Update Definitions.js Co-authored-by: Manuel <[email protected]>
1 parent 429b959 commit b185fad

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/Options/Definitions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ module.exports.ParseServerOptions = {
156156
},
157157
expireInactiveSessions: {
158158
env: 'PARSE_SERVER_EXPIRE_INACTIVE_SESSIONS',
159-
help: 'Sets wether we should expire the inactive sessions, defaults to true',
159+
help:
160+
'Sets whether we should expire the inactive sessions, defaults to true. If false, all new sessions are created with no expiration date.',
160161
action: parsers.booleanParser,
161162
default: true,
162163
},

src/Options/docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @property {Boolean} enableAnonymousUsers Enable (or disable) anonymous users, defaults to true
2929
* @property {Boolean} enableExpressErrorHandler Enables the default express error handler for all errors
3030
* @property {String} encryptionKey Key for encrypting your files
31-
* @property {Boolean} expireInactiveSessions Sets wether we should expire the inactive sessions, defaults to true
31+
* @property {Boolean} expireInactiveSessions Sets whether we should expire the inactive sessions, defaults to true. If false, all new sessions are created with no expiration date.
3232
* @property {String} fileKey Key for your files
3333
* @property {Adapter<FilesAdapter>} filesAdapter Adapter module for the files sub-system
3434
* @property {FileUploadOptions} fileUpload Options for file uploads

src/Options/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export interface ParseServerOptions {
170170
sessionLength: ?number;
171171
/* Max value for limit option on queries, defaults to unlimited */
172172
maxLimit: ?number;
173-
/* Sets wether we should expire the inactive sessions, defaults to true
173+
/* Sets whether we should expire the inactive sessions, defaults to true. If false, all new sessions are created with no expiration date.
174174
:DEFAULT: true */
175175
expireInactiveSessions: ?boolean;
176176
/* When a user changes their password, either through the reset password email or while logged in, all sessions are revoked if this is true. Set to false if you don't want to revoke sessions.

0 commit comments

Comments
 (0)