import { SecureStore , SecureStoreCredentials } from './SecureStore' ; export class KeytarSecureStore implements SecureStore { constructor ( private keytar ) { } async getPassword ( service , account ) { return this . keytar . getPassword ( service , account ) ; } async setPassword ( service , account , password ) { return this . keytar . setPassword ( service , account , password ) ; } async deletePassword ( service , account ) { return this . keytar . deletePassword ( service , account ) ; } async findCredentials ( service ) { return this . keytar . findCredentials ( service ) ; } async findPassword ( _service ) { throw new Error ( 'Operation not supported' ) ; } }