chore: add comment about manualKey
This commit is contained in:
1 parent
c39a4646a3
commit
c8086403db
1 file changed
+4
@@ -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 });
|
||||
}
|
||||
Reference in new issue
Block a user