Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
module.exports = function (options, cb) {
options.nodejsCompiler('return ' + options.script, function (error, func) {
if (error) return cb(error);
return cb(null, function (ctx, cb) {
func(ctx.body.user, ctx.body.context, function (error, user, context) {
cb(error, error ? null : { user: user, context: context });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment