chore: add comment about manualKey

This commit is contained in:
Rudy B. committed 2026-04-25 18:16:49 +02:00
1 parent c39a4646a3
commit c8086403db
1 file changed
+4
+4
View File
@@ -34,5 +34,9 @@ export async function POST(request: Request) {
create: { userId, secret: encryptedSecret, isEnabled: false },
});
/*
`manualKey` is intentionally plaintext as the user needs it once for manual entry.
The encrypted copy in DB is what matters for long-term storage.
*/
return json({ qrCodeDataUrl, manualKey: secret });
}