()
| 157 | } |
| 158 | }, |
| 159 | delete(): boolean { |
| 160 | // Invalidate cache before delete |
| 161 | clearKeychainCache() |
| 162 | |
| 163 | try { |
| 164 | const storageServiceName = getMacOsKeychainStorageServiceName( |
| 165 | CREDENTIALS_SERVICE_SUFFIX, |
| 166 | ) |
| 167 | const username = getUsername() |
| 168 | execSyncWithDefaults_DEPRECATED( |
| 169 | `security delete-generic-password -a "${username}" -s "${storageServiceName}"`, |
| 170 | ) |
| 171 | return true |
| 172 | } catch (_e) { |
| 173 | return false |
| 174 | } |
| 175 | }, |
| 176 | } satisfies SecureStorage |
| 177 | |
| 178 | async function doReadAsync(): Promise<SecureStorageData | null> { |
nothing calls this directly
no test coverage detected