DEV Community

Discussion on: Python Chat Tutorial with Django and React

Collapse
 
isaidspaghetti profile image
Taylor Graham

I had the same issue and this was the solution. The 'id' value from client.setUser must match the argument for client.createToken

const streamToken = client.createToken('exactNameHere');

await client.setUser(
{
id: 'exactNameHere'
},