Skip to content

Commit

Permalink
feat(firebase-x): add getCurrentUser
Browse files Browse the repository at this point in the history
add getCurrentUser method. fixes danielsogl#3356
  • Loading branch information
akshaydwivedi29 authored Apr 21, 2020
1 parent 3e0b075 commit e5a77f4
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/@ionic-native/plugins/firebase-x/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,48 @@ export interface IChannelOptions {
visibility?: -1 | 0 | 1;
}

export interface FirebaseUser {
/**
* ID token
*/
idToken?: string;

/**
* Provider ID
*/
providerId?: string;

/**
* UID
*/
uid?: string;

/**
* photo url
*/
photoUrl?: string;

/**
* phone number
*/
phoneNumber?: string;

/**
* is email verified
*/
emailIsVerified?: boolean;

/**
* email
*/
email?: string;

/**
* name
*/
name?: string;
}

/**
* @name Firebase X
* @description
Expand Down Expand Up @@ -119,6 +161,15 @@ export class FirebaseX extends IonicNativePlugin {
return;
}

/**
* Get the current FCM user.
* @return {Promise<FirebaseUser | string>}
*/
@Cordova()
getCurrentUser(): Promise<FirebaseUser | string> {
return;
}

/**
* Get notified when a token is refreshed.
* @return {Observable<any>}
Expand Down

0 comments on commit e5a77f4

Please sign in to comment.