UNPKG

artsy-passport

Version:

Wires up the common auth handlers for Artsy's [Ezel](ezeljs.com)-based apps using [passport](http://passportjs.org/).

29 lines (25 loc) 986 B
// Generated by CoffeeScript 1.11.1 (function() { var crypto; crypto = require('crypto'); module.exports = { linkedinPath: '/users/auth/linkedin', linkedinCallbackPath: '/users/auth/linkedin/callback', facebookPath: '/users/auth/facebook', facebookCallbackPath: '/users/auth/facebook/callback', twitterPath: '/users/auth/twitter', twitterCallbackPath: '/users/auth/twitter/callback', twitterLastStepPath: '/users/auth/twitter/email', twitterSignupTempEmail: function(token) { var hash; hash = crypto.createHash('sha1').update(token).digest('hex'); return (hash.substr(0, 12)) + "@artsy.tmp"; }, loginPagePath: '/log_in', signupPagePath: '/sign_up', settingsPagePath: '/user/edit', afterSignupPagePath: '/personalize', logoutPath: '/users/sign_out', userKeys: ['id', 'type', 'name', 'email', 'phone', 'lab_features', 'default_profile_id', 'has_partner_access', 'collector_level'] }; }).call(this);