From 809e5ac14d3f08b51884d846f7de1d731b8b9c0a Mon Sep 17 00:00:00 2001 From: Akshay Dwivedi Date: Fri, 15 May 2020 18:04:15 +0800 Subject: [PATCH] feat(firebase-x): add getCurrentUser (#3389) * feat(firebase-x): add getCurrentUser add getCurrentUser method. fixes #3356 * Update index.ts * resolve merge conflict * resolve merge conflicts Co-authored-by: Daniel Sogl --- src/@ionic-native/plugins/firebase-x/index.ts | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/src/@ionic-native/plugins/firebase-x/index.ts b/src/@ionic-native/plugins/firebase-x/index.ts index 85d30d190..9d8dced89 100644 --- a/src/@ionic-native/plugins/firebase-x/index.ts +++ b/src/@ionic-native/plugins/firebase-x/index.ts @@ -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 @@ -128,6 +170,15 @@ export class FirebaseX extends IonicNativePlugin { return; } + /** + * Get the current FCM user. + * @return {Promise} + */ + @Cordova() + getCurrentUser(): Promise { + return; + } + /** * Get notified when a token is refreshed. * @return {Observable}