RocketChat / RocketChat/Rocket.Chat
users.removeOtherTokens api call does logout from rochetchat mobile sessions
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
Call users.removeOtherTokens should logout of all clients ( desktop, web and mobile ) , but mobile continues connected even after that call. The same behavior happens when clicking "Logout from other Logged in Location" on profile page on desktop/web client.
Steps to reproduce:
- Log in on the phone
- Log in on the desktop client
- Log in on the webclient
- From the desktop client ( or webclient ) , go to profile and choose "Logout from other Logged in Location" OR call users.removeOtherTokens using the API.
Expected behavior:
All other sessions ( including mobile ) should be disconnected
Actual behavior:
Mobile remains connected
Server Setup Information:
- Version of Rocket.Chat Server: 3.11
- Deployment Method: k8s
Client Setup Information
- Desktop App or Browser Version: N/A
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the users.removeOtherTokens API flow with sessions on mobile, desktop, and web, then compare it with the profile action "Logout from other Logged in Location." Done means every other session, including the mobile session, is disconnected after either action.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, authentication, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100