EmbeddedChat connecting 401 (Unauthorized)
I started the server on a virtual machine with ubuntu. I configured it to my IP address.
I created a client separately, in the client I can receive a token using a login and password, register users, create channels, receive channels.
I'm adding a chat component to react <EmbeddedChat host={RocketChatBaseUrl} roomId="659fe0328178c3edbc8efe7a" auth={{ flow: 'TOKEN', credentials: { accessToken: 'wEOzAoEV8tNV9qO78rXVps7kci7ZhlIsgk1U23сRsWe', }, }} /> and I get the error: "GET http://192.168.222.132:3000/api/v1/channels.members?roomId="659fe0328178c3edbc8efe7a" 401 (Unauthorized)
I don't understand why I can do various things, but when I add a component I get a 401 (Unauthorized) error.
Is your channel private ?
I got exactly the same issue, after successful api/v1/login authorisation request it does not set auth headers to requests to get room details