Add logs for debugging

This commit is contained in:
Gilbert 2024-06-19 14:22:55 -05:00
parent 552dfe783e
commit 198478f5fa
2 changed files with 3 additions and 1 deletions

View File

@ -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'),

View File

@ -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;