RTM icon indicating copy to clipboard operation
RTM copied to clipboard

newState: CONNECTING, reason: LOGIN newState: DISCONNECTED, reason: LOGIN_FAILURE newState: CONNECTING, reason: LOGIN newState: DISCONNECTED, reason: LOGIN_FAILURE

Open kush4545 opened this issue 3 years ago • 7 comments

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?

kush4545 avatar Jul 13 '22 08:07 kush4545

did you login with a token? how is that token generated?

plutoless avatar Jul 13 '22 09:07 plutoless

I generated temporary token but token was optional for web

kush4545 avatar Jul 13 '22 10:07 kush4545

I just put app id there but Account name I am puting my mail It's throwing error

kush4545 avatar Jul 13 '22 10:07 kush4545

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

plutoless avatar Jul 13 '22 11:07 plutoless

Thanks @plutoless

kush4545 avatar Jul 13 '22 11:07 kush4545

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 avatar Jul 13 '22 13:07 kush4545

@kush4545 image 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.

plutoless avatar Jul 14 '22 01:07 plutoless