Beispiel #1
0
 internal static async Task <string> GetUserName(AuthProvider provider)
 {
     if (provider == AuthProvider.MicrosoftAccount)
     {
         return(await LiveIdAuth.GetUserName());
     }
     else
     {
         return(await O365Auth.GetUserName());
     }
 }
Beispiel #2
0
 internal static async Task SignOut(AuthProvider provider)
 {
     if (provider == AuthProvider.MicrosoftAccount)
     {
         await LiveIdAuth.SignOut();
     }
     else
     {
         await O365Auth.SignOut();
     }
 }