feat: Add configurable auto logout on inactivity

Users can pick an inactivity timeout in their preferences. A warning
appears 30 seconds before, and activity or a logout is synchronised
across open tabs.
This commit is contained in:
Daniel Hiller
2026-08-08 00:24:16 +02:00
parent a9d0c228df
commit 3ef87a8603
22 changed files with 603 additions and 2 deletions
+10
View File
@@ -95,6 +95,11 @@
* enum: [byDefault, alphabetically, byCreationTime]
* description: Default sort order for projects display
* example: byDefault
* autoLogoutMode:
* type: string
* enum: [never, 2m, 5m, 10m, 30m, 12h]
* description: Auto-logout behavior on inactivity
* example: 30m
* isDeactivated:
* type: boolean
* description: Whether the user account is deactivated and cannot log in (for admins)
@@ -200,6 +205,10 @@ module.exports = {
type: 'string',
isIn: Object.values(User.ProjectOrders),
},
autoLogoutMode: {
type: 'string',
isIn: Object.values(User.AutoLogoutModes),
},
isDeactivated: {
type: 'boolean',
},
@@ -266,6 +275,7 @@ module.exports = {
'defaultEditorMode',
'defaultHomeView',
'defaultProjectsOrder',
'autoLogoutMode',
'isDeactivated',
]),
};