How to use the keytar.findPassword function in keytar

To help you get started, we’ve selected a few keytar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tutao / tutanota / src / desktop / sse / DesktopAlarmStorage.js View on Github external
init(): Promise {
		return keytar.findPassword(SERVICE_NAME)
		             .then(pw => pw
			             ? pw
			             : this._generateAndStoreDeviceKey()
		             )
		             .then(pw => this._initialized.resolve(uint8ArrayToBitArray(base64ToUint8Array(pw))))
	}
github tutao / tutanota / src / desktop / sse / DesktopAlarmStorage.js View on Github external
		             .then(() => keytar.findPassword(SERVICE_NAME))
		             .then(pw => {

keytar

Bindings to native Mac/Linux/Windows password APIs

MIT
Latest version published 3 years ago

Package Health Score

58 / 100
Full package analysis