overleaf/services/web/test/unit/src
Antoine Clausse 25d8e053be [web] Update revokeAllUserSessions and rename it to removeSessionsFromRedis (#18360)
* Fix `revokeAllUserSessions` call in `_cleanupUser`

The user object should be passed, not the _id

* Change `revokeAllUserSessions` signature, take `req` and `stayLoggedIn` arguments

* Update uses of `revokeAllUserSessions`

* Fix promisified `revokeAllUserSessions` args

* Update tests

* Destroy or Regenerate the session in the end of `revokeAllUserSessions`

Per https://github.com/overleaf/internal/issues/17036#issuecomment-1938398570

* Revert "Destroy or Regenerate the session in the end of `revokeAllUserSessions`"

This reverts commit fe30734dbe45b27d2931d2e43a711d591bb85787.

* Rename `revokeAllUserSessions` to `removeSessionsFromRedis`

* Fixup tests

* Fix: add optional chaining in `req.sessionID` (!!)

GitOrigin-RevId: d41676bf00f463230af495e09c65fb9ee521f49f
2024-05-20 08:04:12 +00:00
..
Analytics
Authentication [web] Update revokeAllUserSessions and rename it to removeSessionsFromRedis (#18360) 2024-05-20 08:04:12 +00:00
Authorization
BetaProgram Merge pull request #17907 from overleaf/ab-split-test-assignments-optim-pt1 2024-04-19 08:04:11 +00:00
BrandVariations
Chat
Collaborators Merge pull request #18294 from overleaf/jpa-td-invite-details 2024-05-16 08:05:09 +00:00
Compile Merge pull request #17935 from overleaf/ar-refactor-compile-async 2024-04-30 08:04:43 +00:00
Contact
Cooldown
Docstore
Documents
DocumentUpdater Send operations to project-history when resolving/unresolving comments (#17540) 2024-04-10 08:04:08 +00:00
Downloads
Editor
Email Merge pull request #18294 from overleaf/jpa-td-invite-details 2024-05-16 08:05:09 +00:00
Errors
Exports Merge pull request #18116 from overleaf/jpa-bulk-replace-localhost 2024-04-26 08:04:39 +00:00
FileStore
HelperFiles Merge pull request #18116 from overleaf/jpa-bulk-replace-localhost 2024-04-26 08:04:39 +00:00
helpers
History Merge pull request #17956 from overleaf/mj-web-promisify-restore-manager 2024-04-24 08:04:26 +00:00
InactiveData
infrastructure Merge pull request #17596 from overleaf/rh-permissions-policy 2024-04-08 08:04:29 +00:00
Institutions
Metadata
Newsletter Merge pull request #18021 from overleaf/rh-mailchimp-api 2024-04-22 08:04:33 +00:00
Notifications
PasswordReset [web] Update revokeAllUserSessions and rename it to removeSessionsFromRedis (#18360) 2024-05-20 08:04:12 +00:00
Project Merge pull request #18252 from overleaf/jpa-refactor-for-flaky-test 2024-05-09 08:05:23 +00:00
Publishers
Referal
References
SamlLog
Security Merge pull request #18153 from overleaf/jpa-validate-session-in-store 2024-05-03 08:04:25 +00:00
Settings [web] Use localized number formatting for currencies (#17622) 2024-04-19 08:03:54 +00:00
Spelling
SplitTests Merge pull request #18058 from overleaf/ab-split-test-convert-race-cond-fix 2024-04-23 08:05:54 +00:00
Subscription Merge pull request #18188 from overleaf/jel-react-group-invite 2024-05-09 08:05:03 +00:00
SystemMessages
Tags
Templates Merge pull request #18116 from overleaf/jpa-bulk-replace-localhost 2024-04-26 08:04:39 +00:00
ThirdPartyDataStore Merge pull request #18252 from overleaf/jpa-refactor-for-flaky-test 2024-05-09 08:05:23 +00:00
TokenAccess Merge pull request #18170 from overleaf/ae-token-access-page 2024-05-03 08:05:01 +00:00
Tutorial
Uploads
User [web] Update revokeAllUserSessions and rename it to removeSessionsFromRedis (#18360) 2024-05-20 08:04:12 +00:00
UserMembership