Skip to content

Instantly share code, notes, and snippets.

@nparsons08 nparsons08/token.js
Last active Oct 1, 2018

Embed
What would you like to do?
module.exports.token = (event, context, callback) => {
const data = JSON.parse(event.body);
const token = streamClient.createUserSessionToken(data.user);
const response = {
statusCode: 200,
body: JSON.stringify({ token: token })
};
callback(null, response);
};
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.