mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-19 05:47:43 -04:00
Do not close passkey popup windows for testing purposes (#520)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user