Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
init(): Promise {
return keytar.findPassword(SERVICE_NAME)
.then(pw => pw
? pw
: this._generateAndStoreDeviceKey()
)
.then(pw => this._initialized.resolve(uint8ArrayToBitArray(base64ToUint8Array(pw))))
}
.then(() => keytar.findPassword(SERVICE_NAME))
.then(pw => {