easemob-chat-uikit 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -161,11 +161,10 @@ const ChatApp = () => {
161
161
  const client = useClient();
162
162
  useEffect(() => {
163
163
  client &&
164
- client
165
- .open({
166
- user: '',
167
- accessToken: '',
168
- })
164
+ client.login({
165
+ userId: 'userId',
166
+ token: 'token',
167
+ })
169
168
  .then(res => {
170
169
  console.log('get token success', res);
171
170
  // create a conversation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easemob-chat-uikit",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Easemob UIKit for React - A comprehensive React UI component library for building instant messaging applications with chat, voice/video calling, and group management features",
5
5
  "main": "ChatUI.umd.js",
6
6
  "type": "module",