src/serivces/globalData/globalUserData.js
/**
     * this will initialize static fields of this class
     * @param  user 
     * 
     */
this will initialize static fields of this class
@param  user
this will initialize static fields of this class @param user
static async initializeUserData(user){
        UserData.userid = user.uid
        UserData.isLoggedIn = true;
       const userDataFromDB = await DB.getUserData( );
        UserData.profilePic =  userDataFromDB.profilePicture;
        UserData.username =userDataFromDB.name;
        UserData.email = userDataFromDB.email;
    }
static async initializeUserData ( user ) { UserData . userid = user . uid UserData . isLoggedIn = true ; const userDataFromDB = await DB . getUserData ( ) ; UserData . profilePic = userDataFromDB . profilePicture ; UserData . username = userDataFromDB . name ; UserData . email = userDataFromDB . email ; }
this will initialize static fields of this class
 @param  user
this will initialize static fields of this class @param user