Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Commit 6e16d75

Browse files
committed
fix: credential.id is already base64url from verifyRegistrationResponse, don't double-encode
1 parent 493b1b7 commit 6e16d75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

routes/passkeys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ router.post('/passkeys/register/complete', authenticateToken, async (req, res) =
120120
'INSERT INTO passkeys (user_id, credential_id, public_key, counter, transports, name) VALUES (?, ?, ?, ?, ?, ?)',
121121
[
122122
userId,
123-
isoBase64URL.fromBuffer(credential.id),
123+
credential.id,
124124
isoBase64URL.fromBuffer(credential.publicKey),
125125
credential.counter,
126126
(credential.transports || []).join(','),

0 commit comments

Comments
 (0)