debug: Ajouter logs pour identifier quelle branche WebAuthn est prise
- Ajouter log dans la branche WebAuthn pour confirmer l'exécution - Ajouter logs dans la branche fallback pour voir les valeurs - Identifier si le problème vient de la condition ou de l'exécution
This commit is contained in:
parent
0a84381d4f
commit
6d7da4d276
@ -122,6 +122,7 @@ export class SecureCredentialsService {
|
|||||||
if (isSecureContext && hasWebAuthn) {
|
if (isSecureContext && hasWebAuthn) {
|
||||||
// Stocker dans les credentials du navigateur (HTTPS requis)
|
// Stocker dans les credentials du navigateur (HTTPS requis)
|
||||||
try {
|
try {
|
||||||
|
console.log('🔍 DEBUG: WebAuthn branch taken - attempting credential creation');
|
||||||
secureLogger.info('Attempting to create WebAuthn credential', {
|
secureLogger.info('Attempting to create WebAuthn credential', {
|
||||||
component: 'SecureCredentialsService',
|
component: 'SecureCredentialsService',
|
||||||
operation: 'webauthn_create_attempt'
|
operation: 'webauthn_create_attempt'
|
||||||
@ -160,6 +161,9 @@ export class SecureCredentialsService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
console.log('🔍 DEBUG: WebAuthn fallback branch taken');
|
||||||
|
console.log('🔍 DEBUG: isSecureContext:', isSecureContext);
|
||||||
|
console.log('🔍 DEBUG: hasWebAuthn:', hasWebAuthn);
|
||||||
secureLogger.info('WebAuthn not available (HTTP context), using fallback storage', {
|
secureLogger.info('WebAuthn not available (HTTP context), using fallback storage', {
|
||||||
component: 'SecureCredentialsService',
|
component: 'SecureCredentialsService',
|
||||||
operation: 'webauthn_fallback',
|
operation: 'webauthn_fallback',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user