 
     # Other errors
     else
-      console.warn "Error requesting an access token from Artsy: " + res.text
+      console.warn "Error requesting an access token from Arena: " + res.text
       done err
 
 #

  twitterPath: '/users/auth/twitter'
  loginPath: '/users/sign_in'
  signupPath: '/users/invitation/accept'
  twitterCallbackPath: '/users/auth/twitter/callback'
  facebookCallbackPath: '/users/auth/facebook/callback'
  twitterLastStepPath: '/users/auth/twitter/email'
  userKeys: ['id', 'type', 'name', 'email', 'phone', 'lab_features',
             'default_profile_id', 'has_partner_access', 'collector_level']
  twitterSignupTempEmail: (token) ->
    hash = crypto.createHash('sha1').update(token).digest('hex').substr(0, 12)
    "#{hash}@artsy.tmp"

#
# Main function that overrides/injects any options, sets up passport, sets up an app to

  app.use passport.session()
  app.post opts.loginPath, localAuth, afterLocalAuth
  app.post opts.signupPath, signup, passport.authenticate('local'), afterLocalAuth
  app.use headerLogin
  app.use addLocals

