open-im-server icon indicating copy to clipboard operation
open-im-server copied to clipboard

Docs: The parameters obtained from the /auth/user_token endpoint do not include chatToken

Open ZhangJiaLei123 opened this issue 1 year ago • 6 comments

Description

The parameters obtained from the /auth/user_token endpoint do not include chatToken, which is only returned by the /account/login endpoint. However, according to the documentation, users registered through /user/user_register do not have a phone number or password and therefore cannot use the /account/login endpoint to log in.

Screenshots

  • /user/user_register

image

  • /auth/user_token
    image

  • /account/login
    image

Additional information

No response

ZhangJiaLei123 avatar Jan 25 '24 05:01 ZhangJiaLei123

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

kubbot avatar Jan 25 '24 05:01 kubbot

Would you mind assisting me in obtaining the chat token through the chat API? The information can be found at this link: https://github.com/openimsdk/chat. Thank you for your help!

cubxxw avatar Jan 25 '24 08:01 cubxxw

You should be aware of the relationship between the chat service and the IM server. The chat service is primarily used for registration. Once a user successfully registers there, they should then call the REST API to register with the IM server.

skiffer-git avatar Jan 26 '24 01:01 skiffer-git

Meanwhile, once a user successfully logs into the chat server, they will receive a chat token from it. Following this, they should call the REST API to obtain an IM token from the IM server.

skiffer-git avatar Jan 26 '24 01:01 skiffer-git

Meanwhile, once a user successfully logs into the chat server, they will receive a chat token from it. Following this, they should call the REST API to obtain an IM token from the IM server.

Thanks, I know the function of chat token. But can chat token only be obtained through login interface? Is there no interface like /auth/user_token to get it?

  • images
    image

ZhangJiaLei123 avatar Jan 27 '24 01:01 ZhangJiaLei123

您介意协助我通过聊天 API 获取聊天令牌吗?该信息可以在以下链接中找到:https://github.com/openimsdk/chat。感谢您的帮助!

You can find the document on their official website:https://doc.rentsoft.cn

ZhangJiaLei123 avatar Jan 27 '24 01:01 ZhangJiaLei123

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

kubbot avatar Mar 27 '24 08:03 kubbot

This issue was closed because it has been stalled for 7 days with no activity.

kubbot avatar Apr 04 '24 08:04 kubbot