OAuth fails to log into RocketChat

Description

I set up Auth0 as the OAuth provider based on these instructions:

The authentication seems to work fine, but Rocket Chat doesn’t let me in. Only stays on the login page. A red error message pops up saying “[undefined]”.

When I look in the logs, it just says “msg”:“Exception while invoking method login ‘’”

I’m not sure whether OAuth users are meant to show up under the Rocket Chat user list as well, but they don’t appear there.

I’ve been trying to debug from any angle I can, but I haven’t been able to get enough information to even narrow down the cause of the issue. Any help is appreciated!

Server Setup Information

  • Version of Rocket.Chat Server: 5.0.7
  • Operating System: Ubuntu
  • Deployment Method: Digitalocean Marketplace
  • Number of Running Instances: 1

I managed to find the issue and it was on my side - an error I had made in the configuration setup.

As a feature request, it would be great to have more detailed error messages or logs. Debgging “Undefined” was particularly difficult.

Many thanks for building this excellent platform!