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

@ -169,7 +169,7 @@ export class FirebaseX extends IonicNativePlugin {
getId(): Promise<null | string> {
return;
}
/**
* Get the current FCM user.
* @return {Promise<FirebaseUser | string>}
@ -178,7 +178,7 @@ export class FirebaseX extends IonicNativePlugin {
getCurrentUser(): Promise<FirebaseUser | string> {
return;
}
/**
* Reload the current FCM user.
* @return {Promise<FirebaseUser | string>}
@ -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.
*/
@Cordova({
callbackOrder: 'reverse'
callbackOrder: 'reverse',
})
verifyPhoneNumber(
phoneNumber: string,
timeOutDuration: number,
fakeVerificationCode?: string
): Promise<any> {
verifyPhoneNumber(phoneNumber: string, timeOutDuration: number, fakeVerificationCode?: string): Promise<any> {
return;
}
/**
* 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;
}