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:
parent
bab3ba67ab
commit
1ddcde6b24
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user