diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-05-16 12:27:21 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-05-16 12:27:21 -0400 |
| commit | 18752008f9abd7749f61f8d674f66de2a535c131 (patch) | |
| tree | 5825328e58cf8a4a196532f8b40d515b185cd8ea /backend | |
| parent | 802b65cfd634305f62d88cb57c54f8c053701d27 (diff) | |
SSR with Auth
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/src/index.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/backend/src/index.js b/backend/src/index.js index a3a5309..86bba16 100644 --- a/backend/src/index.js +++ b/backend/src/index.js @@ -10,8 +10,6 @@ const server = createServer(); server.express.use(cookieParser()); server.express.use((req, res, next) => { - console.log('Hey'); - const { token } = req.cookies; if (token) { const { userId } = jwt.verify(token, process.env.APP_SECRET); @@ -26,7 +24,6 @@ server.express.use(async (req, res, next) => { const user = await server .context() .db.query.user({ where: { id: req.userId } }, `{ id, permissions, email, name }`); - console.log(user); req.user = user; next(); }); |
