RocketChat / RocketChat/Rocket.Chat
Turn off "Allow Username Change" doesn't work with custom OAuth on Mobile
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
Login with custom OAuth stuck at enter new username step when turning off "Allow Username Change". Login with the same OAuth works with Web client
Steps to reproduce:
- Create a custom OAuth
- Turn off "Allow Username Change" setting
- Login with custom OAuth from mobile app
- Enter new username and save
Expected behavior:
Save the new username successfully
Actual behavior:
Error when saving new username
Server Setup Information:
- Version of Rocket.Chat Server:
- Operating System: Ubuntu 18.04
- Deployment Method: Docker
- Number of Running Instances: 1
- DB Replicaset Oplog: Enabled
- NodeJS Version: v14.19.3
- MongoDB Version: 4.4.15
Client Setup Information
- Desktop App or Browser Version: ReactNative 4.32.0
Additional context

(We modified the code to show the error)
Relevant logs:
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 custom OAuth login in the ReactNative mobile app with “Allow Username Change” disabled, then compare it with the working Web client flow. Trace the username-save request and its error response; done means the new username saves successfully on mobile under this setting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- authentication, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100