From 42d5ea08a07b251c61b08155638aac2b4c7d120c Mon Sep 17 00:00:00 2001 From: vdias38 Date: Wed, 10 Jun 2020 11:50:56 +0100 Subject: [PATCH] fix(firebase-x): add fakeVerificationCode param to verifyPhoneNumber - also fix misspelled timeOutDuration required param --- src/@ionic-native/plugins/firebase-x/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/firebase-x/index.ts b/src/@ionic-native/plugins/firebase-x/index.ts index d74849e16e..8d5d827683 100644 --- a/src/@ionic-native/plugins/firebase-x/index.ts +++ b/src/@ionic-native/plugins/firebase-x/index.ts @@ -493,7 +493,7 @@ export class FirebaseX extends IonicNativePlugin { * @param {function} success - callback function to pass {object} credentials to as an argument * @param {function} error - callback function which will be passed a {string} error message as an argument * @param {string} phoneNumber - phone number to verify - * @param {integer} timeOutDuration - (optional) time to wait in seconds before timing out + * @param {integer} timeOutDuration - time to wait in seconds before timing out * @param {string} fakeVerificationCode - (optional) to test instant verification on Android ,specify a fake verification code to return for whitelisted phone numbers. * * The success callback will be passed a credential object with the following properties: @@ -506,7 +506,8 @@ export class FirebaseX extends IonicNativePlugin { success: (value: string | object) => void, error: (err: string) => void, phoneNumber: string, - timeoutDuration = 0 + timeOutDuration: number, + fakeVerificationCode?: string ): Promise { return; }