Skip to content
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

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

Open
kush4545 opened this issue Jul 13, 2022 · 7 comments

Comments

@kush4545
Copy link

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?

@plutoless
Copy link
Contributor

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

@kush4545
Copy link
Author

I generated temporary token
but token was optional for web

@kush4545
Copy link
Author

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

@plutoless
Copy link
Contributor

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

@kush4545
Copy link
Author

Thanks @plutoless

@kush4545
Copy link
Author

hey @plutoless for node js how to proceed ??
because I cloned this project and where to add this authentication that I don't know

@plutoless
Copy link
Contributor

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

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

2 participants