Questions tagged [keytar]
11 questions
5
votes
1 answer
Error: Nodejs keytar.node is not a valid Win32 application
I packaged my cli application using pkg and it is working fine on macOS but not running on windows and complaining about keytar.node binary. I am using the same keytar.node which i installed on development machine(macOS) to run on windows as well. I…

Nadeem Baig
- 71
- 3
5
votes
1 answer
Prevent another app from reading password saved by Keytar
In keytar docs and all other articles, the examples shows that storing a password require only the ServiceName:
keytar.setPassword('KeytarTest', 'MyAccount', 'password');
What prevents other software from requesting and reading this data?

baruchiro
- 5,088
- 5
- 44
- 66
5
votes
1 answer
Unhandled Rejection (TypeError): keytar.setPassword is not a function
I am trying to save a password using keytar.js, for some reason I keep getting this error when using ANY function from keytar.
For information : the lib. is installed and the functions are there and present (I checked using console.log) and they…

Med-Amine Benyettou
- 188
- 1
- 8
3
votes
1 answer
Electron Forge v6, Keytar & Node-Loader Error "no suitable image found... file too short"
I am having some trouble getting the Keytar package working in an Electron Forge v6 project (beta.54).
In a freshly generated project, I receive an error about "file too short" when I run the application. Below is an excerpt of the error dialog…

user5156141
- 655
- 9
- 29
3
votes
2 answers
Unable to use keytar in main.js of electron project
I keep getting this error:
error in ./node_modules/keytar/build/Release/keytar.node
Module parse failed: Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process…

CamHart
- 3,825
- 7
- 33
- 69
1
vote
0 answers
keytar.node causing issues in Buildkite pipeline
I'm trying to create a CI/CD pipeline using buildkite where the build steps runs on a Virtual Machine (Ubuntu). However, an npm package called keytar which is a dependency of tedious library is causing issues in the pipeline.
When running one of the…

Arpan Kc
- 928
- 1
- 6
- 19
1
vote
2 answers
installing twilio-cli on WSL
When installing twilio-cli with npm install -g twilio-cli it runs with errors.
I installed nvm and installed node 10 and used the npm with that and it installed twilio-cli but I still get and error.
npm install -g…

elephantatech
- 25
- 1
- 9
0
votes
0 answers
Using Keytar, and regedit NPM packages in same project causes webpack build to break
I have an electron project, and I can use the keytar package. However, when I attempt to add regedit into the mix, keytar breaks, with the following error:
Error: Cannot find module 'undefinedbuild/Release/keytar.node'
For whatever reason this…

Tyler Biscoe
- 2,322
- 3
- 20
- 33
0
votes
1 answer
Variable of function always returns undefined
The idea:
I want to return a variable from a function and then output it using console.log().
The problem:
I can't just use return result because then nothing is returned.
I don`t really know how else to return the variable.
I have already looked…

JueK3y
- 267
- 9
- 22
0
votes
2 answers
Using keytar inside electron with angular
I need to use keytar with electron, but I'm using Angular and Typescript.
I have imported the module in main.ts
import * as keytar from 'keytar';
but It fails to load.
Alternatively, in a module, I'm using
import * as keytar from…

bornfordev
- 1
- 1
0
votes
0 answers
node-keytar, machine wide credential
I need to store a refresh token from OAuth securely, but I need it to be accessibly by my application for all users on the machine. From what I can tell node-keytar only supports credentials being stored on a per user account basis. Is there a way…

CamHart
- 3,825
- 7
- 33
- 69