Skip to content

Instantly share code, notes, and snippets.

@nparsons08 nparsons08/setUser.js Secret
Created Mar 19, 2020

What would you like to do?
const chatClient = new StreamChat(API_KEY);
const userToken = API_TOKEN; // you can retrieve this from the backend server
const user = {
id: 'green-heart-8',
name: 'Green heart',
chatClient.setUser(user, userToken);
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.