From f363814f3c46fc1ec3d1fe06c55e1a5111ffb20b Mon Sep 17 00:00:00 2001 From: Pedro Anibarro Date: Thu, 15 Jul 2021 12:26:27 -0400 Subject: [PATCH] changed prompt to input type number --- src/firebase-common.ts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/firebase-common.ts b/src/firebase-common.ts index 96f3e708..87204d38 100755 --- a/src/firebase-common.ts +++ b/src/firebase-common.ts @@ -136,12 +136,19 @@ export const firebase: any = { return value; }, requestPhoneAuthVerificationCode: (onUserResponse, verificationPrompt) => { - prompt(verificationPrompt || "Verification code").then(promptResult => { - if (!promptResult.result) { - onUserResponse(undefined); - } else { - onUserResponse(promptResult.text); - } + prompt({ + title: "Confirm", + message: verificationPrompt || "Verification code", + inputType: "number", + okButtonText: "OK", + cancelButtonText: "Cancel" + }).then(promptResult => { + if (!promptResult.result) { + onUserResponse(undefined); + } + else { + onUserResponse(promptResult.text); + } }); }, // for backward compatibility, because plugin version 4.0.0 moved the params to per-logintype objects