Do not close passkey popup windows for testing purposes (#520)

This commit is contained in:
Leendert de Borst
2025-10-02 10:52:15 +02:00
parent 1a5ed775de
commit d40d2d9c43
2 changed files with 12 additions and 2 deletions

View File

@@ -130,7 +130,12 @@ const PasskeyAuthenticate: React.FC = () => {
credential
}, 'background');
window.close();
// For debugging: Don't close the window automatically
console.info('PasskeyAuthenticate: Authentication complete. Window kept open for debugging.');
setLoading(false);
// Uncomment to auto-close:
// window.close();
} catch (error) {
console.error('PasskeyAuthenticate: Error during authentication', error);
setLoading(false);

View File

@@ -135,7 +135,12 @@ const PasskeyCreate: React.FC = () => {
credential: flattenedCredential
}, 'background');
window.close();
// For debugging: Don't close the window automatically
console.info('PasskeyCreate: Passkey created successfully. Window kept open for debugging.');
setLoading(false);
// Uncomment to auto-close:
// window.close();
} catch (error) {
console.error('PasskeyCreate: Error creating passkey', error);
setLoading(false);