-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable user auth, do not set GA user id
- Loading branch information
1 parent
773f5e3
commit 65a6e70
Showing
1 changed file
with
2 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|