showing results for - "how to use keytar electron"
Gabriel
31 Nov 2019
1const keytar = require('keytar');
2
3keytar.setPassword('KeytarTest', 'AccountName', 'secret');
4
5const secret = keytar.getPassword('KeytarTest', 'AccountName');
6secret.then((result) => {
7    console.log("result: "+ result); // result will be 'secret'
8});