feat(firebase-x): add setLanguageCode method for auth (#3548)

Co-authored-by: david <david@192.168.1.36>
This commit is contained in:
David 2020-10-16 19:12:52 +02:00 committed by GitHub
parent b2e82bea62
commit 5d1b5d5fda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -526,13 +526,18 @@ export class FirebaseX extends IonicNativePlugin {
* code {string} - verification code. Will only be present if instantVerification is true. Always undefined on iOS. * code {string} - verification code. Will only be present if instantVerification is true. Always undefined on iOS.
*/ */
@Cordova({ @Cordova({
callbackOrder: 'reverse' callbackOrder: 'reverse',
}) })
verifyPhoneNumber( verifyPhoneNumber(phoneNumber: string, timeOutDuration: number, fakeVerificationCode?: string): Promise<any> {
phoneNumber: string, return;
timeOutDuration: number, }
fakeVerificationCode?: string
): Promise<any> { /**
* Switch current authentification system language, for example, the phone sms code.
* @param lang - language to change, ex: 'fr' for french
*/
@Cordova()
setLanguageCode(lang: string): Promise<any> {
return; return;
} }