Last active
October 1, 2018 23:03
-
-
Save astrotars/76f72742eb08497eb54c89951b16080b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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