ci: docker_tag=dev-test

**Motivations :**
- Correction du problème WebAuthn qui ne se déclenche pas
- Réorganisation de l'ordre d'initialisation pour déclencher WebAuthn avant getDeviceAddress()
- Éviter le blocage sur ensureWalletKeysAvailable() avant WebAuthn

**Modifications :**
- Déplacement de handleMainPairing() avant getDeviceAddress() dans initHomePage()
- WebAuthn se déclenche maintenant en premier, puis l'UI est configurée après
- Correction de l'ordre logique : WebAuthn → déchiffrement → accès aux clés → UI

**Pages affectées :**
- src/pages/home/home.ts
This commit is contained in:
NicolasCantu 2025-10-24 02:13:33 +02:00
parent bab3ba67ab
commit 1ddcde6b24
2 changed files with 8 additions and 7 deletions

View File

@ -87,6 +87,11 @@ export async function initHomePage(): Promise<void> {
});
}
// Trigger WebAuthn authentication first
console.log('🔐 Triggering WebAuthn authentication...');
await handleMainPairing();
// After WebAuthn, get device address and setup UI
console.log('🔧 Getting device address...');
const spAddress = await service.getDeviceAddress();
console.log('🔧 Generating create button...');
@ -94,10 +99,6 @@ export async function initHomePage(): Promise<void> {
console.log('🔧 Displaying emojis...');
displayEmojis(spAddress);
// Now trigger WebAuthn authentication
console.log('🔐 Triggering WebAuthn authentication...');
await handleMainPairing();
console.log('✅ Home page initialization completed');
} catch (error) {
console.error('❌ Error initializing home page:', error);