Skip to content

Instantly share code, notes, and snippets.

@nparsons08 nparsons08/startChat.js Secret
Created Sep 26, 2019

Embed
What would you like to do?
const response = await post(
"http://localhost:8080/v1/stream-credentials",
{},
backendAuthToken
);
const client = new StreamChat(response.apiKey);
client.setUser(response.user, response.token);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.