mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
feat(firebase-x): add setLanguageCode method for auth (#3548)
Co-authored-by: david <david@192.168.1.36>
This commit is contained in:
parent
b2e82bea62
commit
5d1b5d5fda
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user