From 198478f5fae1d6f62c2da1cf94b17a0831b04da4 Mon Sep 17 00:00:00 2001 From: Gilbert Date: Wed, 19 Jun 2024 14:22:55 -0500 Subject: [PATCH] Add logs for debugging --- packages/backend/src/routes/auth.ts | 2 ++ packages/backend/src/routes/staging.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/routes/auth.ts b/packages/backend/src/routes/auth.ts index 62071660..2c736310 100644 --- a/packages/backend/src/routes/auth.ts +++ b/packages/backend/src/routes/auth.ts @@ -19,6 +19,7 @@ router.get('/registration/:email', async (req, res) => { }); router.post('/register', async (req, res) => { + console.log('Register', req.body); const { email, challenge, attestation } = req.body; const user = await createUser(req.app.get('service'), { challenge, @@ -31,6 +32,7 @@ router.post('/register', async (req, res) => { }); router.post('/authenticate', async (req, res) => { + console.log('Authenticate', req.body); const { signedWhoamiRequest } = req.body; const user = await authenticateUser( req.app.get('service'), diff --git a/packages/backend/src/routes/staging.ts b/packages/backend/src/routes/staging.ts index 6ac55a6e..8adfcd76 100644 --- a/packages/backend/src/routes/staging.ts +++ b/packages/backend/src/routes/staging.ts @@ -3,7 +3,7 @@ import { Router } from 'express'; const router = Router(); router.get('/version', async (req, res) => { - return res.send({ version: '0.0.3' }); + return res.send({ version: '0.0.4' }); }); export default router;