This commit is contained in:
Baobhan Sith
2025-05-08 14:55:50 +08:00
parent 3861936299
commit 18227ae2ab
2 changed files with 19 additions and 13 deletions
@@ -97,6 +97,8 @@ export class PasskeyRepository {
const db = await getDbInstance();
const sql = 'SELECT * FROM passkeys WHERE user_id = ? ORDER BY created_at DESC';
const results = await allDb<any>(db, sql, [userId]);
// Log the raw results from the database before mapping
console.log(`[PasskeyRepository] Raw passkeys for user ${userId}:`, JSON.stringify(results, null, 2));
return mapPasskeyResults(results);
}