Skip to content

iOS app cannot login - server TypeError in sauMonitorHooks.ts during authentication #36078

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tunmia opened this issue May 26, 2025 · 0 comments

Comments

@tunmia
Copy link

tunmia commented May 26, 2025

Description:

iOS app login fails with the error "Oops! Your credentials were rejected! Please try again."
This occurs even after successful initial authentication (username/password) and also after successfully entering a 2FA code (if Email 2FA is enabled). Server logs indicate a TypeError in sauMonitorHooks.ts during an onLogin callback, suggesting a server-side bug?

Steps to reproduce:

  1. Attempt to log in to the Rocket.Chat server using the iOS mobile application (v4.60.0, build 79289 on iOS 18.4.1)
  2. Enter credentials
  3. If Email 2FA is enabled for the user account, the app prompts for a 2FA code, and an email with the code is successfully received.
  4. Enter the 2FA code received
  5. The login attempt fails, and the iOS app displays the error message: "Oops! Your credentials were rejected! Please try again."

Expected behavior:

Successful login to the Rocket.Chat workspace via the iOS application.

Actual behavior:

The iOS application displays the error message: "Oops! Your credentials were rejected! Please try again."

Server Setup Information:

  • Version of Rocket.Chat Server: 7.6.0 (Latest)
  • License Type: Starter (Self Hosted)
  • Number of Users: 2
  • Operating System: Debian 12
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: v22.15.0
  • MongoDB Version:7.0.20

Client Setup Information

  • Desktop App or Browser Version: N/A - Issue specifically with the iOS mobile app
  • Operating System: iOS 18.4.1

Additional context

  • Login to the same server and user account works correctly via the web client and the Android mobile client.
  • Nginx reverse proxy access logs show HTTP 200 OK for POST /api/v1/login requests from the iOS client
  • The issue persists even after temporarily disabling all forms of 2FA

Relevant logs:

Server Logs:

Mai 15 12:39:22 bnet002 rocketchat[52876]: Exception in onLogin callback TypeError: Cannot use 'in' operator to search for 'resume' in tH6-PKwcCTtwXd3gNy4rlUkbTOhdaxa3reLahq55VdO
Mai 15 12:39:22 bnet002 rocketchat[52876]:     at server/hooks/sauMonitorHooks.ts:21:59
Mai 15 12:39:22 bnet002 rocketchat[52876]:     at Array.find (<anonymous>)
Mai 15 12:39:22 bnet002 rocketchat[52876]:     at server/hooks/sauMonitorHooks.ts:21:37
Mai 15 12:39:22 bnet002 rocketchat[52876]:     at packages/callback-hook/hook.js:187:18
Mai 15 12:39:22 bnet002 rocketchat[52876]:     at packages/accounts-base/accounts_server.js:253:13
Mai 15 12:39:22 bnet002 rocketchat[52876]:     at Hook.forEachAsync (packages/callback-hook/hook.js:156:20)
Mai 15 12:39:22 bnet002 rocketchat[52876]:     at AccountsServer._successfulLogin (packages/accounts-base/accounts_server.js:252:29)
Mai 15 12:39:22 bnet002 rocketchat[52876]:     at AccountsServer._attemptLogin (packages/accounts-base/accounts_server.js:489:18)
Mai 15 12:39:22 bnet002 rocketchat[52876]:     at processTicksAndRejections (node:internal/process/task_queues:105:5)
Mai 15 12:39:22 bnet002 rocketchat[52876]:     at AccountsServer._loginMethod (packages/accounts-base/accounts_server.js:509:12)
Mai 15 12:39:22 bnet002 rocketchat[52876]:     at MethodInvocation.verifyEmail (packages/accounts-password/password_server.js:763:14)

Nginx Access Log:

[15/May/2025:12:39:22 +0200] "POST /api/v1/login HTTP/1.1" 200 XXX "-" "RC Mobile; ios 18.4.1; v4.60.0 (79289)"
@tunmia tunmia changed the title iOS app login fails with the error "**Oops! Your credentials were rejected! Please try again**." iOS app login fails with the error "Oops! Your credentials were rejected! Please try again. May 26, 2025
@tunmia tunmia changed the title iOS app login fails with the error "Oops! Your credentials were rejected! Please try again. iOS app cannot login - server TypeError in sauMonitorHooks.ts during authentication May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant