Quantcast
Channel: How to use keytar (for electron) - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by ykonda for How to use keytar (for electron)

$
0
0

Ok so after looking around, I found out the answer. You call the resulting promise and operate on the argument to the promise.

keytar.setPassword('KeytarTest', 'AccountName', 'secret');const secret = keytar.getPassword('KeytarTest', 'AccountName');secret.then((result) => {    console.log("result: "+ result); // result will be 'secret'});

Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>