RocketChat / RocketChat/Rocket.Chat

users.removeOtherTokens api call does logout from rochetchat mobile sessions

Open
#20,627 0 comments 0 reactions 0 assignees View on GitHub

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:
  1. Log in on the phone
  2. Log in on the desktop client
  3. Log in on the webclient
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.