File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -403,6 +403,24 @@ export default class ElectronPlatform extends VectorBasePlatform {
403
403
return true ;
404
404
}
405
405
406
+ public async getPlatformSecret ( key : string ) : Promise < string | null > {
407
+ return await this . ipc . call ( "getSecret" , key ) . catch ( ( error ) => {
408
+ logger . info ( `Failed to connect to password storage to get ${ key } ` , error ) ;
409
+ } ) ;
410
+ }
411
+
412
+ public async savePlatformSecret ( key : string , value : string ) : Promise < string | null > {
413
+ return await this . ipc . call ( "saveSecret" , key , value ) . catch ( ( error ) => {
414
+ logger . info ( `Failed to connect to password storage to save ${ key } ` , error ) ;
415
+ } ) ;
416
+ }
417
+
418
+ public async destroyPlatformSecret ( key : string ) : Promise < void > {
419
+ return await this . ipc . call ( "destroySecret" , key ) . catch ( ( error ) => {
420
+ logger . info ( `Failed to connect to password storage to destroy ${ key } ` , error ) ;
421
+ } ) ;
422
+ }
423
+
406
424
public async getPickleKey ( userId : string , deviceId : string ) : Promise < string | null > {
407
425
try {
408
426
return await this . ipc . call ( "getPickleKey" , userId , deviceId ) ;
You can’t perform that action at this time.
0 commit comments