Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
React Native Stream Group Chat Tutorial: add auth route
// server/server.js"/auth", async (req, res) => {
const user_id = req.body.user_id;
console.log('user ID: ', user_id);
if (!user_id) {
return res.status(400);
return res.send({
token: server_side_client.createToken(user_id)
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.