Skip to content

Commit

Permalink
disable user auth, do not set GA user id
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacwhite committed Mar 19, 2019
1 parent 773f5e3 commit 65a6e70
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions userAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@
const md5 = require('md5')
const router = require('express-promise-router')()

// @TODO: Remove below code block when ready to publish the demo site
const defaultAuth = require('../server/userAuth')
router.use(defaultAuth)
// END @TODO REMOVE BLOCK

router.use(async (req, res) => {
req.userInfo = {
email: '[email protected]',
userId: '10',
analyticsUserId: md5('10library')
// prevents incorrect GA tracking
analyticsUserId: false
}

return 'next'
Expand Down

0 comments on commit 65a6e70

Please sign in to comment.