fix: WebAuthn PRF salt length and server logbook key storage

This commit is contained in:
2026-05-29 08:46:50 +02:00
parent abfaf3e99c
commit 128dd17863
2 changed files with 21 additions and 11 deletions
+5 -2
View File
@@ -46,7 +46,7 @@ router.get('/', async (req: any, res) => {
// 2. Create a new logbook
router.post('/', async (req: any, res) => {
try {
const { id, encryptedTitle } = req.body
const { id, encryptedTitle, encryptedKey, iv, tag } = req.body
if (!encryptedTitle) {
return res.status(400).json({ error: 'encryptedTitle is required' })
}
@@ -55,7 +55,10 @@ router.post('/', async (req: any, res) => {
data: {
id: id || undefined,
userId: req.userId,
encryptedTitle
encryptedTitle,
encryptedKey,
iv,
tag
}
})