https://developers.google.com/identity/protocols/OAuth2InstalledApp here a detailed description on
how the OAuth2 work flow should happen is given and we follow this.
https://rocket.chat/docs/developer-guides/realtime-api/method-calls/login/ here a method for OAuth login is
present.