Skip to content

Commit

Permalink
feat(firebase-x): add setLanguageCode method for auth (#3548)
Browse files Browse the repository at this point in the history
Co-authored-by: david <david@192.168.1.36>
  • Loading branch information
boblepepeur and david authored Oct 16, 2020
1 parent b2e82be commit 5d1b5d5
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/@ionic-native/plugins/firebase-x/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class FirebaseX extends IonicNativePlugin {
getId(): Promise<null | string> {
return;
}

/**
* Get the current FCM user.
* @return {Promise<FirebaseUser | string>}
Expand All @@ -178,7 +178,7 @@ export class FirebaseX extends IonicNativePlugin {
getCurrentUser(): Promise<FirebaseUser | string> {
return;
}

/**
* Reload the current FCM user.
* @return {Promise<FirebaseUser | string>}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 5d1b5d5

Please sign in to comment.