@@ -58,27 +58,27 @@ export class CredentialStorage {
5858 * @returns Stored credentials or null if not found
5959 */
6060 async getCredentials ( ) : Promise < StoredCredentials | null > {
61- console . log ( '🔍 Attempting to retrieve stored credentials...' ) ;
61+ // REMOVED: console.log('🔍 Attempting to retrieve stored credentials...');
6262
6363 // First try encrypted file (more reliable for single-user scenario)
6464 try {
65- console . log ( '📁 Checking encrypted file:' , this . fallbackFile ) ;
65+ // REMOVED: console.log('📁 Checking encrypted file:', this.fallbackFile);
6666 const encryptedCredentials = await this . retrieveEncrypted ( ) ;
6767 if ( encryptedCredentials ) {
68- console . log ( '✓ Found credentials in encrypted file' ) ;
68+ // REMOVED: console.log('✓ Found credentials in encrypted file');
6969 return encryptedCredentials ;
7070 } else {
71- console . log ( '⚠ No credentials found in encrypted file' ) ;
71+ // REMOVED: console.log('⚠ No credentials found in encrypted file');
7272 }
7373 } catch ( error ) {
74- console . log ( '❌ Error reading encrypted file:' , ( error as Error ) ?. message ) ;
74+ // REMOVED: console.log('❌ Error reading encrypted file:', (error as Error)?.message);
7575 }
7676
7777 // Fallback to keychain
7878 try {
79- console . log ( '🔑 Checking OS keychain...' ) ;
79+ // REMOVED: console.log('🔑 Checking OS keychain...');
8080 const accounts = await this . getStoredAccounts ( ) ;
81- console . log ( '📋 Found accounts:' , accounts ) ;
81+ // REMOVED: console.log('📋 Found accounts:', accounts);
8282
8383 if ( accounts . length > 0 ) {
8484 // Try each account until we find valid credentials
@@ -87,22 +87,22 @@ export class CredentialStorage {
8787 const stored = await keyring . getPassword ( this . serviceName , account ) ;
8888 if ( stored ) {
8989 const credentials = JSON . parse ( stored ) ;
90- console . log ( '✓ Found credentials in OS keychain for:' , account ) ;
90+ // REMOVED: console.log('✓ Found credentials in OS keychain for:', account);
9191 return credentials ;
9292 }
9393 } catch ( error ) {
94- console . log ( '⚠ Failed to retrieve credentials for account:' , account ) ;
94+ // REMOVED: console.log('⚠ Failed to retrieve credentials for account:', account);
9595 continue ;
9696 }
9797 }
9898 } else {
99- console . log ( '⚠ No accounts found in keychain' ) ;
99+ // REMOVED: console.log('⚠ No accounts found in keychain');
100100 }
101101 } catch ( error ) {
102- console . log ( '❌ Error accessing keychain:' , ( error as Error ) ?. message ) ;
102+ // REMOVED: console.log('❌ Error accessing keychain:', (error as Error)?.message);
103103 }
104104
105- console . log ( '❌ No credentials found in any storage method' ) ;
105+ // REMOVED: console.log('❌ No credentials found in any storage method');
106106 return null ;
107107 }
108108
0 commit comments