newState: CONNECTING, reason: LOGIN newState: DISCONNECTED, reason: LOGIN_FAILURE newState: CONNECTING, reason: LOGIN newState: DISCONNECTED, reason: LOGIN_FAILURE
when I am trying to login with my mail id it's logging in and instantly disconnected Why it's happening can you please tell?
did you login with a token? how is that token generated?
I generated temporary token but token was optional for web
I just put app id there but Account name I am puting my mail It's throwing error
the temporary token generated from console is for rtc. that's why it fails when you use it to login with RTM. take a look here for how you can generate a RTM token https://docs.agora.io/en/Real-time-Messaging/token_server_rtm?platform=All%20Platforms
Thanks @plutoless
hey @plutoless for node js how to proceed ?? because I cloned this project and where to add this authentication that I don't know
@kush4545
here you can find the nodejs token generator code. You may use that to generate a token and use the token generated as parameter of login api in this sample.