We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2294054 commit 0b9a86cCopy full SHA for 0b9a86c
index.js
@@ -22,11 +22,11 @@ const canAuthenticate = () => {
22
* @returns {Promise<boolean>}
23
*/
24
const requestBioAuth = (promptTitle, promptMessage) => {
25
- if (typeof promptTitle !== "string") {
26
- throw new Error("prompt title must be a string");
+ if (typeof promptTitle !== "string" || !promptTitle) {
+ throw new Error("prompt title must be a non empty string");
27
}
28
29
- if (!promptMessage) {
+ if (typeof promptMessage !== "string" || !promptMessage) {
30
throw new Error("prompt message must be a non empty string");
31
32
0 commit comments