eclipsesource / tabris-js

Create native mobile apps in JavaScript or TypeScript.
https://tabrisjs.com
BSD 3-Clause "New" or "Revised" License
1.4k stars 170 forks source link

Signing and key derivation: support configuring auth prompt texts #2286

Closed cpetrov closed 8 months ago

cpetrov commented 8 months ago

For keys that require authentication, a prompt is shown to the user on Android to confirm the operation. The texts were previously hard-coded. This change allows to configure them via an options object passed to subtle.sign(), subtle.deriveKey() and subtle.deriveBits(). When the key is not protected by a user authentication requirement, the authentication options are ignored.