Exemplo n.º 1
0
        public async Task <bool> RetrieveUserData()
        {
            var info = await MobileClient.InvokeApiAsync <List <SocialLoginResult> >("/.auth/me");

            if (info.FirstOrDefault() is SocialLoginResult result)
            {
                UserName    = result.GetUserName();
                UserEmail   = result.GetUserEmail();
                UserPicture = result.GetUserPictureURL();
                return(true);
            }
            return(false);
        }
Exemplo n.º 2
0
 public async Task <List <SocialLoginResult> > GetUserData()
 {
     return(await MobileClient.InvokeApiAsync <List <SocialLoginResult> >("/.auth/me"));
 }