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

Commit cb63226

Browse files
committed
fix: pass userId as Uint8Array to generateRegistrationOptions (v13+ requirement)
1 parent 6a2c371 commit cb63226

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
@@ -55,7 +55,7 @@ router.post('/passkeys/register/begin', authenticateToken, async (req, res) => {
5555
userDisplayName: user[0].username,
5656
attestationType: 'none',
5757
excludeCredentials,
58-
userId: isoBase64URL.fromString(String(userId)),
58+
userId: new TextEncoder().encode(String(userId)),
5959
});
6060

6161
challengeMap.set(userId, {

0 commit comments

Comments
 (0)